Teaching class in rainy Atlanta this week, and a question came up: How can I get the network adapter configuration for just the real, physical network adapters? Here's one way.
get-wmiobject -class win32_networkadapterconfiguration | where-object { (get-wmiobject -class win32_networkadapter -filter "physicaladapter=true" | select -expand name) -contains $_.description }
2 comments
Hide comments