Created
August 5, 2013 22:03
-
-
Save joefitzgerald/6160001 to your computer and use it in GitHub Desktop.
WinRM Error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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