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
|
|
|
# Include the following modules
|
|
|
|
$Dir = Split-Path $script:MyInvocation.MyCommand.Path
|
|
|
|
. ([System.IO.Path]::Combine($Dir, "utils\write_messages.ps1"))
|
|
|
|
|
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)
|
2014-02-27 16:08:02 +00:00
|
|
|
Write-Output-Message $(ConvertTo-JSON $Switches)
|