diff --git a/plugins/provisioners/shell/provisioner.rb b/plugins/provisioners/shell/provisioner.rb index a2c918e57..f50507549 100644 --- a/plugins/provisioners/shell/provisioner.rb +++ b/plugins/provisioners/shell/provisioner.rb @@ -190,7 +190,7 @@ module VagrantPlugins # CLIXML output is kinda useless, especially on non-windows hosts shell_args += " -OutputFormat Text" if config.powershell_args !~ /[-\/]OutputFormat/i - command = "#{exec_path}#{args}" + command = "\"#{exec_path}\"#{args}" command = "powershell #{shell_args.to_s} -file #{command}" if File.extname(exec_path).downcase == '.ps1'