microsoft powershell get-adapter

Get-NetAdapter | Taking on PowerShell one cmdlet at a time | Weekly Blog

Share this post:

This is a part of an on-going blog series written by Adam Gordon. Each week, Adam will walk you through a PowerShell command, showing you when and how to use each one. This week, Adam covers Get-NetAdapter.

When to use Get-NetAdapter

Anytime you need to get the basic network adapter properties.

NOTE: By default, only visible adapters are returned. To see the common network adapter properties, pipe the output into the Format-List cmdlet. To see all the properties, pipe the output to the Format-List cmdlet with the Property parameter specified as the wildcard character “<insert property(ies) here

How to use Get-NetAdapter

Get all visible network adapters:

Get-NetAdapter -Name “*”

how to see all visible network adapters in microsoft powershell

 

Get all visible & hidden network adapters:

Get-NetAdapter -Name “*” -IncludeHidden 

how to see all visible & hidden network adapters in powershell

 

Get all physical network adapters:

Get-NetAdapter -Name “*” -Physical 

how to see all physical network adapters in microsoft powershell

 

Display all properties for the specified adapter:

Get-NetAdapter -Name “Wi-Fi 2” | Format-List -Property “*”

how to display all properties in microsoft powershell

 

Display parameter values for all network adapters:

Get-NetAdapter -Name “*” -IncludeHidden | Format-List -Property “Name”, “InterfaceDescription”, “InterfaceName”, “DriverName”, “DriverDate”

how to display parameter values for all network adapters in powershell

Need PowerShell training? Check out ITProTV’s PowerShell online IT training courses.