PowerTip: Find Network Adapters that Are Up

The Scripting Guys

Dr Scripto

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.

The Scripting Guys
Dr Scripto

Follow Dr Scripto   

No Comments.