Today I found myself troubleshooting an issue in a remote site and needing to find out what the client’s link speed is. Easy information to get I said, I’ll just RDP to the box and look! Well, a user was currently logged into the machine so no luck there (unless I really felt like being mean…). So off to the internet I went to see just were I could pull this information from. Luckily, the Performance Counters contain a whole lot of data that just so happen to be useful in this particular scenario.
The WMI Class Win32_PerfRawData_Tcpip_NetworkInterface has an abundant amount of information about the different network adapters in a system and their current state. And even better, PowerShell will let you remotely connect to another machine and grab this data! So, a simple one-liner later and I have a easy to read table that spits out the network adapter name and current link speed of that adapter!
Here it is (don’t forget to change the Computer Name):