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

9 lines
217 B
PowerShell

#Requires -Modules VagrantMessages
$check = $(-Not (-Not (Get-Command "Hyper-V\Get-VMSwitch" -ErrorAction SilentlyContinue)))
$result = @{
result = $check
}
Write-OutputMessage $(ConvertTo-Json $result)