diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2015-05-29 13:30:33 -0700 |
---|---|---|
committer | Kartik Null Cating-Subramanian <ksubramanian@chef.io> | 2015-05-29 16:55:50 -0400 |
commit | 0594046ea04be724556fcaa12d76534fbc099a42 (patch) | |
tree | 358020fac7e860c17bea8f9d0ab5fc8d765b0932 | |
parent | 266e95575dc5dc79a568da9b6ceec7ff7635db1f (diff) | |
download | chef-0594046ea04be724556fcaa12d76534fbc099a42.tar.gz |
change executionpolicy to unrestricted
-rw-r--r-- | lib/chef/mixin/powershell_out.rb | 2 | ||||
-rw-r--r-- | 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 |