Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Am new to Powershell. I need to get names of all network using get-networkadapter cmdlet. Can anyone please help me out?

share|improve this question
    
What get-networkadapter cmdlet? This is not a shipping cmdlet with powershell. It's a 3rd party cmdlet - find out who wrote it, and ask them. –  x0n Feb 11 '11 at 21:11
add comment

1 Answer

You can use WMI to do this:

Get-WMIObject -Class Win32_NetworkAdapater -Filter "NetEnabled=$true"

will list the network adapter details. If you want to look at the IP address details, you can do so by:

Get-WMIObject -Class Win32_NetworkAdapterConfiguration -Filter "IPEnabled=$true"
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.