Bruce Adamczak

I have spent years working in perfmon, so I thought I would share some tips and tricks on the tool!

Windows 2012 Core Survival Guide – MacAddress, LinkSpeed and view single NICs

Windows 2012 Core Survival Guide – MacAddress, LinkSpeed and view single NICs

  • Comments 2
  • Likes

Learn about my 2012 Core Survival Guide here.

MacAddress, LinkSpeed and view single NICs

There are a few more commands I want to add to wrap up this section about IPv4 settings.  This will give you all the cmdlet you need to get the same data as IPconfig /all.

Viewing MAC Address and NIC Link Speed

To view the MAC Address and NIC link speed I am going to use the Get-NetAdapter cmdlet  

PowerShell Command:

Get-NetAdapter | format-table interfaceindex, interfacealias, MacAddress, LinkSpeed –autosize

This command show the Network Adaptor settings Mac Address and LinkSpeed. 

 

Viewing just one Network Interface.

In order to view just a single network interface all of my previous post’s cmdlet can be filter.  You must know the "Interfaceindex" or the “InterfaceAlias” of the network interface you wish to output.  I am only going to show you how to use the InterfaceIndex in this post.

In each command you can add the following " Where Interfaceindex -eq <interfaceindex value> |" which will filter the output to only display one index selected.  Below is an example:

PowerShell Command:

Get-NetAdapter | Where Interfaceindex -eq 12 | format-table interfaceindex, interfacealias, MacAddress, LinkSpeed -autosize

This command allows us to display the properties on just one interface port.

 

If you wish to see all of the possible properties on this interface port you can use the following command.

PowerShell Command:

Get-NetIPAddress | Where Interfaceindex -eq 12 | format-list *

 

I hope you found this useful.  Please leave me a comment

Bruce

 

 

Comments
  • <p>Thanks, just what I needed for MAC addresses on a new Win2012 server.</p>

  • Excellent Post - thanks for helping me

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment