PowerShell with a Purpose Blog

Getting configurations for physical network adapters

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 }

Hide comments


  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.