0% found this document useful (0 votes)
108 views5 pages

Get-NetAdapter (Netadapter) Tutorial

This cmdlet gets the basic network adapter properties on local and remote computers. It returns objects with properties of network adapters including name, interface description, and interface index. Examples are provided to get adapters by name, description, index and format the output in different views.

Uploaded by

Hamami InkaZo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
108 views5 pages

Get-NetAdapter (Netadapter) Tutorial

This cmdlet gets the basic network adapter properties on local and remote computers. It returns objects with properties of network adapters including name, interface description, and interface index. Examples are provided to get adapters by name, description, index and format the output in different views.

Uploaded by

Hamami InkaZo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Get-NetAdapter (netadapter)

coreyp-at-msft

Gets the basic network adapter properties.

In this article

1. Syntax
2. Description
3. Examples
4. Required Parameters
5. Optional Parameters
6. Inputs
7. Outputs
8. Related Links
Get-NetAdapter
[[-Name] <String[]>]
[-IncludeHidden]
[-Physical]
[-CimSession <CimSession[]>]
[-ThrottleLimit <Int32>]
[-AsJob]
[<CommonParameters>]

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

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

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 cmdlet with the Property parameter specified as the wildcard character "". 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.

Examples
Example 1: Get all visible network adapters
PS C:\> Get-NetAdapter -Name "*"

This command gets all of the visible network adapters.

Example 2: Get all visible and hidden network adapters


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

This command gets all of the network adapters.

Example 3: Get all physical network adapters


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

This command gets all of the physical network adapters.

Example 4: Get a network adapter by the specified name


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

This command is a version that uses wildcard characters.


PS C:\> Get-NetAdapter -Name "E*2"

This command gets the network adapter named Ethernet 2.


Example 5: Display the common properties for the specified network adapter
PS C:\> Get-NetAdapter -Name "Ethernet 3" | Format-List -Property "*"

This command displays the common properties for the network adapter named Ethernet 3 and formats the list using the Format-
List cmdlet.

Example 6: Display all properties for the specified network adapter


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

This command displays all of the properties for the network adapter named Ethernet 6.

Example 7: Get all network adapters using the interface description that matches a prefix pattern
PS C:\> Get-NetAdapter -Name "*" -InterfaceDescription "VendorAdapter*"

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

Example 8: Display parameter values for all network adapters


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

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

Example 9: Get the visible network adapters on the specified server


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

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

Example 10: Get the visible network adapters and format the output
PS C:\> Get-NetAdapter -Name "*" | Format-Table -View Driver

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

Example 11: Gets visible network adapters and format the output
PS C:\> Get-NetAdapter -Name "*" | Format-Table -View Name

This command 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 InterfaceName parameter values.
Required Parameters
Specifies an array of network adapter interface descriptions. For a physical network adapter this is typically the name of the vendor
of the network adapter followed by a part number and description, such as Contoso 12345 Gigabit Network Device.

Specifies the network adapter interface index number as an array.

Optional Parameters
Runs the cmdlet as a background job. Use this parameter to run commands that take a long time to complete. The cmdlet
immediately returns an object that represents the job and then displays the command prompt. You can continue to work in the
session while the job completes. To manage the job, use the *-Job cmdlets. To get the job results, use the Receive-Job cmdlet. For
more information about Windows PowerShell® background jobs, see about_Jobs.

Runs the cmdlet in a remote session or on a remote computer. Enter a computer name or a session object, such as the output of a
New-CimSession or Get-CimSession cmdlet. The default is the current session on the local computer.

Indicates that the cmdlet includes both visible and hidden network adapters in the operation. By default only visible network
adapters are included. If a wildcard character is used in identifying a network adapter and this parameter has been specified, then
the wildcard string is matched against both hidden and visible network adapters.

Specifies an array of network adapter names.

Indicates that the cmdlet gets all physical network adapters.

Specifies the maximum number of concurrent operations that can be established to run the cmdlet. If this parameter is omitted or a
value of 0 is entered, then Windows PowerShell® calculates an optimum throttle limit for the cmdlet based on the number of CIM
cmdlets that are running on the computer. The throttle limit applies only to the current cmdlet, not to the session or to the
computer.

Inputs
None

Outputs
Microsoft.Management.Infrastructure.CimInstance#ROOT/StandardCimv2/NetAdapter
The Microsoft.Management.Infrastructure.CimInstance object is a wrapper class that displays Windows Management
Instrumentation (WMI) objects. The path after the pound sign (#) provides the namespace and class name for the underlying WMI
object.

Disable-NetAdapter
Enable-NetAdapter
Rename-NetAdapter
Restart-NetAdapter
Set-NetAdapter

Feedback
We'd love to hear your thoughts. Choose the type you'd like to provide:
Our feedback system is built on GitHub Issues. Read more on our blog.

There is currently no feedback for this document. Submitted feedback will appear here.

Thanks for the feedback!

Comments or suggestions? Tell us here.

Text-to-speech function is limited to 200 characters

You might also like