From a871f16c6ec7413558dbadf7870b7bb065c36c9a Mon Sep 17 00:00:00 2001 From: Lamont Granquist Date: Fri, 29 May 2015 13:30:33 -0700 Subject: change executionpolicy to unrestricted --- lib/chef/mixin/powershell_out.rb | 2 +- spec/unit/mixin/powershell_out_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/chef/mixin/powershell_out.rb b/lib/chef/mixin/powershell_out.rb index a81905407c..e4f29c07c4 100644 --- a/lib/chef/mixin/powershell_out.rb +++ b/lib/chef/mixin/powershell_out.rb @@ -85,7 +85,7 @@ class Chef "-NoProfile", # always set the ExecutionPolicy flag # see http://technet.microsoft.com/en-us/library/ee176961.aspx - "-ExecutionPolicy RemoteSigned", + "-ExecutionPolicy Unrestricted", # Powershell will hang if STDIN is redirected # http://connect.microsoft.com/PowerShell/feedback/details/572313/powershell-exe-can-hang-if-stdin-is-redirected "-InputFormat None" diff --git a/spec/unit/mixin/powershell_out_spec.rb b/spec/unit/mixin/powershell_out_spec.rb index 3ce641ee8f..0fede582fa 100644 --- a/spec/unit/mixin/powershell_out_spec.rb +++ b/spec/unit/mixin/powershell_out_spec.rb @@ -23,7 +23,7 @@ describe Chef::Mixin::PowershellOut do subject(:object) { shell_out_class.new } let(:architecture) { "something" } let(:flags) { - "-NoLogo -NonInteractive -NoProfile -ExecutionPolicy RemoteSigned -InputFormat None" + "-NoLogo -NonInteractive -NoProfile -ExecutionPolicy Unrestricted -InputFormat None" } describe "#powershell_out" do -- cgit v1.2.1