PowerTip: Use PowerShell 3.0 to View IP Address Info


Summary: View detailed IP address information for non-virtual network adapters.

Hey, Scripting Guy! Question How can I obtain detailed IP address information from a non-virtual network adapter?

Hey, Scripting Guy! Answer Charlotte PowerShell User Group member Brian Wilhite says: Luckily, there is a cmdlet that does this very thing.  The Get-NetIPConfiguration cmdlet with the -Detailed parameter will return meaningful IP information for non-virtual network adapters.

Get-NetIPConfiguration -Detailed

gip -Detailed

 

Comments (8)

  1. Anonymous says:

    Someone did a diff on powershell v3  between windows 7 / Server 2008 and Windows 8 / Server 2012

    msmvps.com/…/powershell-v3-installed-modules.aspx

    "They can’t be made available on Windows 7 because the underlying WMI classes aren’t available"

  2. Greg Wojan says:

    No, there isn't an equivalent command for Windows 7. 🙁 It's really a shame the Microsoft chose to make all *cool* new stuff Windows 8/Server 2012 only…

  3. shandy says:

    I tried to run that command as an admin on my version 3.0 powershell on Win 7 Enterprise 64bit machine, and it said: Get-NetIPConfiguration : The term 'Get-NetIPConfiguration' is not recognized as the name of a cmd…

    CategoryInfo          : ObjectNotFound: (Get-NetIPConfiguration:String) [], CommandNotFoundException

    FullyQualifiedErrorId : CommandNotFoundException

    Any idea how to solve this problem?

  4. Igor says:

    The same problem :

    Get-NetIPConfiguration : The term 'Get-NetIPConfiguration' is not recognized as the name of a cmdlet, function, script file, or operable program.

    My OS is win7 Professional 64 bit.

    $PSVersionTable

    Name                           Value

    —-                           —–

    WSManStackVersion              3.0

    PSCompatibleVersions           {1.0, 2.0, 3.0}

    SerializationVersion           1.1.0.1

    BuildVersion                   6.2.9200.16398

    PSVersion                      3.0

    CLRVersion                     4.0.30319.296

    PSRemotingProtocolVersion      2.2

  5. robertskinner says:

    You might want to add that this only works on windows 8/Server 2012

  6. Dave says:

    Is there an equivalent command for Win 7 64 bit?

  7. Thorn says:

    So for Win 7, 'ipconfig /all' still works from powershell and I just found another command that provides network info in an anonymous post on the web.

    gwmi win32_networkadapterconfiguration

  8. Erik says:

    If you combine the win32_networkadapterconfiguration and win32_networkadapter classes you can also recover about the same info as the get-netipconfiguration cmdlet. The only problem is the formatting needs be done seperately but they provide a lot of information.

Skip to main content