11 lines
312 B
PowerShell
11 lines
312 B
PowerShell
#Requires -Modules VagrantMessages
|
|
# This will have a SwitchType property. As far as I know the values are:
|
|
#
|
|
# 0 - Private
|
|
# 1 - Internal
|
|
#
|
|
|
|
$Switches = @(Hyper-V\Get-VMSwitch `
|
|
| Select-Object Name,SwitchType,NetAdapterInterfaceDescription,Id)
|
|
Write-OutputMessage $(ConvertTo-JSON $Switches)
|