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 “*”
Get all visible & hidden network adapters:
Get-NetAdapter -Name “*” -IncludeHidden
Get all physical network adapters:
Get-NetAdapter -Name “*” -Physical
Display all properties for the specified adapter:
Get-NetAdapter -Name “Wi-Fi 2” | Format-List -Property “*”
Display parameter values for all network adapters:
Get-NetAdapter -Name “*” -IncludeHidden | Format-List -Property “Name”, “InterfaceDescription”, “InterfaceName”, “DriverName”, “DriverDate”
Need PowerShell training? Check out ITProTV’s PowerShell online IT training courses.