Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Get a list of Physical Network Adapters that are bound to External Virtual Switches
$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
You can’t perform that action at this time.