PowerShell Logo Small

Get-NetAdapter



This is the built-in help made by Microsoft for the command 'Get-NetAdapter', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Gets the basic network adapter properties.

SYNTAX


Get-NetAdapter [[-Name] <String[]>] [-AsJob] [-CimSession <CimSession[]>] [-IncludeHidden] [-Physical] [-ThrottleLimit <Int32>] [<CommonParameters>]
Get-NetAdapter [-AsJob] [-CimSession <CimSession[]>] [-IncludeHidden] [-Physical] [-ThrottleLimit <Int32>] -InterfaceDescription <String[]> [<CommonParameters>]
Get-NetAdapter [-AsJob] [-CimSession <CimSession[]>] [-IncludeHidden] [-Physical] [-ThrottleLimit <Int32>] -InterfaceIndex <UInt32[]> [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Get-NetAdapter cmdlet gets the basic network adapter properties. 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 with the Property parameter specified as any (*). This cmdlet supports
multiple views. The default view is as a table. To see more information regarding various network adapter identifiers use the names view using the Format-Table cmdlet with
the View parameter specified as name. To see more information regarding the miniport (device driver) such as driver date or version use the driver view using the
Format-Table cmdlet with the View parameter specified as driver.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/p/?linkid=287394
Format-List
Format-Table
Disable-NetAdapter
Enable-NetAdapter
Rename-NetAdapter
Restart-NetAdapter
Set-NetAdapter

REMARKS

<

Examples


EXAMPLE 1

PS C:\>Get-NetAdapter -Name *



This example gets all of the visible network adapters.




EXAMPLE 2

PS C:\>Get-NetAdapter -Name * -IncludeHidden



This example gets all of the network adapters.




EXAMPLE 3

PS C:\>Get-NetAdapter -Name * -Physical



This example gets all of the physical network adapters.




EXAMPLE 4

PS C:\>Get-NetAdapter -Name "Ethernet 2"


A version of the cmdlet that uses wildcard characters.
PS C:\>Get-NetAdapter -Name "E*2"


A version of the cmdlet that uses position and wildcard characters.
PS C:\>Get-NetAdapter "E*2"



This example gets the network adapter named Ethernet 2.




EXAMPLE 5

PS C:\>Get-NetAdapter –Name "Ethernet 2" | Format-List –Property *



This example displays the common properties for the network adapter named Ethernet 2.




EXAMPLE 6

PS C:\>Get-NetAdapter –Name "Ethernet 2" | Format-List -Property *



This example displays all of the properties for the network adapter named Ethernet 2,




EXAMPLE 7

PS C:\>Get-NetAdapter -Name * -InterfaceDescription "VendorAdapter*"



This example gets all of network adapters using the interface description that matches the prefix pattern VendorAdapter.




EXAMPLE 8

PS C:\>Get-NetAdapter -Name * -IncludeHidden | Format-List -Property Name, InterfaceDescription, InterfaceName



This example displays the Name, InterfaceDescription, and InterfaceName parameter values for all network adapters.




EXAMPLE 9

PS C:\>Get-NetAdapter -Name * –CimSession Server5



This example gets the visible network adapters on the server named Server5. Note: The server named Server5 can be a remote computer.




EXAMPLE 10

PS C:\>Get-NetAdapter -Name * | Format-Table –View Driver



This example gets the visible network adapters and formats the output to present driver information.




EXAMPLE 11

PS C:\>Get-NetAdapter -Name * | Format-Table –View Name



This example gets the visible network adapters and formats the output to present various names by which a network adapter can be identified such as the Name,
InterfaceDescription, and InterfaceIndex parameter values.