Skip to content

Instantly share code, notes, and snippets.

@joefitzgerald
Created August 5, 2013 22:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joefitzgerald/6160001 to your computer and use it in GitHub Desktop.
Save joefitzgerald/6160001 to your computer and use it in GitHub Desktop.
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