9 lines
256 B
PowerShell
9 lines
256 B
PowerShell
|
# This will have a SwitchType property. As far as I know the values are:
|
||
|
#
|
||
|
# 0 - Private
|
||
|
# 1 - Internal
|
||
|
#
|
||
|
$Switches = @(Get-VMSwitch `
|
||
|
| Select-Object Name,SwitchType,NetAdapterInterfaceDescription)
|
||
|
Write-Output $(ConvertTo-JSON $Switches)
|