August 23rd, 2015

PowerTip: Find Network Adapters that Are Up

Doctor Scripto
Scripter

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.

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.