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