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

12 lines
286 B
PowerShell
Raw Normal View History

# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: BUSL-1.1
2018-05-24 12:57:55 -04:00
#Requires -Modules VagrantMessages
2018-05-24 12:57:55 -04:00
$check = $(-Not (-Not (Get-Command "Hyper-V\Get-VMSwitch" -ErrorAction SilentlyContinue)))
$result = @{
result = $check
}
Write-OutputMessage $(ConvertTo-Json $result)