Windows 8, 8.1, Server 2012, and Server 2012 R2 has a PowerShell cmdlet called: Get-NetAdpater. This tool can be used to quickly get critical network information from a system, such as Half or Full Duplex settings.
Below is the command to get the Name, Description, MAC, Duplex, and LinkSpeed of your network adapter:
Get-NetAdapter | Select-Object -Property Name, InterfaceDescription, MacAddress, FullDuplex, LinkSpeed
Output:
Name : Wi-Fi
InterfaceDescription : Intel(R) Dual Band Wireless-AC 7265
MacAddress : XX-XX-XX-XX-XX-XX
FullDuplex : False
LinkSpeed : 144.4 Mbps
There is more information that can be displayed. To view all the property names type:
Get-NetAdapter | Select-Object -Property *
Now you can build your own PowerShell command to display exactly what you want!!
Windows 7 and Server 2008 R2 can also use PowerShell to find similar information:
Get-WmiObject -ComputerName ‘localhost’ -Class Win32_NetworkAdapter | `Where-Object {$_.Speed -ne $null -and $_.MACAddress -ne $null } | `Format-Table -Property SystemName,Name,MACAddress,NetConnectionID,Speed
Output:
SystemName : systemname
Name : NVIDIA nForce 10/100/1000
NetConnectionID : Local Area Connection
MAC Address : XX-XX-XX-XX-XX-XX-XX
Speed : 100000000
There is more information that can be displayed. To view all the property names type:
Get-WmiObject -ComputerName ‘localhost’ -Class Win32_NetworkAdapter
You can add or subtract what is displayed.
Keep in mind that there is no such thing as Half-Duplex for 1G and 10G connections.
Got a project that needs expert IT support?
From Linux and Microsoft Server to VMware, networking, and more, our team at CR Tech is here to help.
Get personalized support today and ensure your systems are running at peak performance or make sure that your project turns out to be a successful one!
CONTACT US NOW