I am as a Premier Field Engineering supporting Windows Server and Active Directory with an emphasis on OS performance.
Follow Me and Learn 2012 Index or Windows 2012 Core Survival Guide Index
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
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:
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.
Get-NetIPAddress | Where Interfaceindex -eq 12 | format-list *
I hope you found this useful. Please leave me a comment
Thanks, just what I needed for MAC addresses on a new Win2012 server.