summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2015-05-29 13:30:33 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2015-05-29 13:30:33 -0700
commita871f16c6ec7413558dbadf7870b7bb065c36c9a (patch)
tree02fbabb9f381964da119ccfe410e616316a034ef
parenta123c315307f5210629d63e20cd80906620a072e (diff)
downloadchef-a871f16c6ec7413558dbadf7870b7bb065c36c9a.tar.gz
change executionpolicy to unrestrictedlcg/powershell_out
-rw-r--r--lib/chef/mixin/powershell_out.rb2
-rw-r--r--spec/unit/mixin/powershell_out_spec.rb2
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