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

9 lines
218 B
PowerShell

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