From c743e6d1300b89a0cc5ea3787e90b7128400c94e Mon Sep 17 00:00:00 2001 From: Chris McClimans Date: Tue, 18 Oct 2016 11:05:14 +1300 Subject: [PATCH] ExecutionPolicy => Unrestricted for install.ps1 --- lib/chef/provisioning/convergence_strategy/install_msi.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/chef/provisioning/convergence_strategy/install_msi.rb b/lib/chef/provisioning/convergence_strategy/install_msi.rb index ced32a61..8609e508 100644 --- a/lib/chef/provisioning/convergence_strategy/install_msi.rb +++ b/lib/chef/provisioning/convergence_strategy/install_msi.rb @@ -41,7 +41,7 @@ def setup_convergence(action_handler, machine) action_handler.open_stream(machine.node['name']) do |stdout| action_handler.open_stream(machine.node['name']) do |stderr| - machine.execute(action_handler, "& \"#{convergence_options[:install_script_path]}\"", + machine.execute(action_handler, "& powershell.exe -ExecutionPolicy Unrestricted -NoProfile \"#{convergence_options[:install_script_path]}\"", :stream_stdout => stdout, :stream_stderr => stderr) end