mitchellh/vagrant — pull request #4313 by w3ttr3y (2014-08-07 12:52:37+00:00)
Title: Fixes 4309: Error when provisioning Windows host using Puppet

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.

While this is probably a best practice that should be implemented, it solves a real world problem of using Puppet to provision a Windows box and having facts that are either arrays or hashes as their string representation contains double quotes.