Merge pull request #6118 from mjaverto/patch-1

Fix Win 10 Enterprise Vagrant Error
This commit is contained in:
Mitchell Hashimoto 2015-11-23 11:45:23 -08:00
commit 55e872eda4
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ try {
$VM = Get-VM -Id $VmId -ErrorAction "Stop"
$State = $VM.state
$Status = $VM.status
} catch [Microsoft.HyperV.PowerShell.VirtualizationOperationFailedException] {
} catch [Microsoft.HyperV.PowerShell.VirtualizationException] {
$State = "not_created"
$Status = $State
}