Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

To troubleshoot a network problem I would like to inquire the real network "speed" for a given network adapter, which can be seen when opening the "status" of a network connection under Windows: Speed setting

However I want to inquire this over the command line or with a small, separate tool because I need to request this for multiple network connections and don't trust the user to fetch the information properly. The network card "Speed/Duplux" setting is always "Auto Negotiate", so I can't tell from that what "Speed" I will get.

share|improve this question
up vote 34 down vote accepted

Try this WMI query:

wmic NIC where NetEnabled=true get Name, Speed

That should give you the speed of all active network connections.

share|improve this answer
Exactly what I'm looking for. Thanks a lot. – asdrubael Apr 16 '12 at 8:38
and if you have sed wmic NIC where NetEnabled=true get Name, Speed | sed -e s/000000000/Gbit/ | sed -e s/000000\b/Mbit/ – Jamie Cook Nov 24 '14 at 2:04
That WMI query worked in Windows 8 cmd, but in Windows 7, I had to use this: wmic NIC where "NetEnabled='true'" get "Name,Speed" It seems that the cmd shell was trying to interpret the ',' as a space or command separator. PowerShell has this problem, also. Thanks for putting me on the right path! – The Dude Nov 25 '14 at 19:39

I would like to contribute to your share. If you need to run sed in Windows, you can download UnxUtils, then extract sed.exe into c:\Windows\System32

Then when you pipe with sed like you suggested, it works. (Windows 8.1)


wmic NIC where NetEnabled=true get Name, Speed | sed -e s/000000000/Gbit/ | sed -e s/000000\b/Mbit/
share|improve this answer
\b doesn't work with sed in Cygwin. What works for me is [^0]. Or, to be complete: s/000000[^0]/Mbit/ – pepoluan Apr 11 at 2:30
Except that will swallow the first non-zero character after 000000, which might not be what you want. – Wodin Apr 28 at 8:13

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.