2018-05-24 16:57:55 +00:00
|
|
|
#Requires -Modules VagrantMessages
|
2014-02-27 07:47:28 +00:00
|
|
|
# This will have a SwitchType property. As far as I know the values are:
|
|
|
|
#
|
|
|
|
# 0 - Private
|
|
|
|
# 1 - Internal
|
|
|
|
#
|
2014-02-27 16:08:02 +00:00
|
|
|
|
2017-08-08 17:00:29 +00:00
|
|
|
$Switches = @(Hyper-V\Get-VMSwitch `
|
2018-04-27 23:52:16 +00:00
|
|
|
| Select-Object Name,SwitchType,NetAdapterInterfaceDescription,Id)
|
2018-06-12 22:32:29 +00:00
|
|
|
Write-OutputMessage $(ConvertTo-JSON $Switches)
|