Last active
April 8, 2016 06:23
-
-
Save PlagueHO/fc07435c7321be0f7ba072f3da601c84 to your computer and use it in GitHub Desktop.
Get a list of Physical Network Adapters that are bound to External Virtual Switches
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$MacAddress = ` | |
(Get-VMNetworkAdapter ` | |
-ManagementOS ` | |
-Name (Get-VMSwitch | ? { | |
$_.SwitchType -eq 'External' | |
}).Name).MacAddress | |
Get-NetAdapter -Physical | ? { | |
($_.MacAddress -replace '-','') -in $MacAddress | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment