PowerTip: Find Network Adapters that Are Up


Summary: Find your network adapters that are available.

Hey, Scripting Guy! Question How can I use Windows PowerShell to find which network adapters on my computer are up?

Hey, Scripting Guy! Answer Use the Get-NetAdapter cmdlet and filter on the status, for example:

(Get-NetAdapter).where{$_.status -eq 'up'}

Note  This command works on Windows 8.1 and later.

Comments (5)

  1. Tim Bolton says:

    I have been using this with our old and new servers. Very Handy!
    Get-CimInstance -CimSession $SessionName -ClassName Win32_NetworkAdapterConfiguration -Filter "ipenabled= ‘True’" Thanks Goes Out to Ed Wilson, Jeff Hicks, Mike Robbins & Richard Siddaway

  2. PetSerAl says:

    This command will fail if you have only one network adapter.

  3. Daniel says:

    Or like this:
    (Get-NetAdapter) | Where Status -eq Up

  4. Daniel says:

    Aargh. I meant like this:
    Get-NetAdapter | Where Status -eq Up

  5. isaac says:

    I am newbie. May I know what is he use of the curvy bracket here?

Skip to main content