diff --git a/plugins/communicators/winrm/communicator.rb b/plugins/communicators/winrm/communicator.rb
index <HASH>..<HASH> 100644
--- a/plugins/communicators/winrm/communicator.rb
+++ b/plugins/communicators/winrm/communicator.rb
@@ -125,7 +125,7 @@ module VagrantPlugins
         script = Vagrant::Util::TemplateRenderer.render(path, options: {
           username: shell.username,
           password: shell.password,
-          command: command,
+          command: command.gsub("\"", "`\""),
         })
         guest_script_path = "c:/tmp/vagrant-elevated-shell.ps1"
         file = Tempfile.new(["vagrant-elevated-shell", "ps1"])
Fixes <I>

When the winrm communicator executes a command in an elevated shell,
this patch causes it to escape double quotes.

This is necessary as the first line in the file that it produces and
then executes it puts the command into a variable called command that
is delimited by double quotes.