diff --git a/provisioner/guest_commands.go b/provisioner/guest_commands.go index 4a65312f9..85d45a05b 100644 --- a/provisioner/guest_commands.go +++ b/provisioner/guest_commands.go @@ -23,8 +23,8 @@ var guestOSTypeCommands = map[string]guestOSTypeCommand{ }, WindowsOSType: guestOSTypeCommand{ chmod: "echo 'skipping chmod %s %s'", // no-op - mkdir: "New-Item -ItemType directory -Force -ErrorAction SilentlyContinue -Path %s", - removeDir: "rm %s -recurse -force", + mkdir: "powershell.exe -Command \"New-Item -ItemType directory -Force -ErrorAction SilentlyContinue -Path %s\"", + removeDir: "powershell.exe -Command \"rm %s -recurse -force\"", }, }