Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
WinRM Error
[vagrant-windows] Running provisioner: shell...
C:\Users\vagrant>shutdown /r /t 0
C:\Users\vagrant>sleep 30
An error occurred executing a remote WinRM command.
Shell: powershell
Command: function which {
$command = [Array](Get-Command $args[0] -errorAction SilentlyContinue)
if($null -eq $command)
{
exit 1
}
write-host $command[0].Definition
exit 0
}
function test ([Switch] $d, [String] $path) {
if(Test-Path $path)
{
exit 0
}
exit 1
}
function chown {
exit 0
}
function mkdir ([Switch] $p, [String] $path)
{
if(Test-Path $path)
{
exit 0
} else {
New-Item $path -Type Directory -Force | Out-Null
}
}
$old = Get-ExecutionPolicy;
Set-ExecutionPolicy Unrestricted -force;
c:\tmp\vagrant-shell.ps1;
Set-ExecutionPolicy $old -force
Message: Bad HTTP response returned from server (500).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment