vagrant/plugins/providers/hyperv/scripts/check_hyperv.ps1

9 lines
217 B
PowerShell
Raw Normal View History

2018-05-24 16:57:55 +00:00
#Requires -Modules VagrantMessages
2018-05-24 16:57:55 +00:00
$check = $(-Not (-Not (Get-Command "Hyper-V\Get-VMSwitch" -ErrorAction SilentlyContinue)))
$result = @{
result = $check
}
Write-OutputMessage $(ConvertTo-Json $result)