RedRum42 Posted February 8, 2008 Share Posted February 8, 2008 Is there a way to get the network speed of the computer? I was looking in the registry and there's not a easy value to grab. Thanks Link to comment Share on other sites More sharing options...
picaxe Posted February 8, 2008 Share Posted February 8, 2008 Have a look at this nic thruput utility by Sulfurious Link to comment Share on other sites More sharing options...
RedRum42 Posted February 8, 2008 Author Share Posted February 8, 2008 Have a look at this nic thruput utility by SulfuriousThis might be useful. However, I think I want something even more simple. I think I want just the link speed or the max network speed of the NIC.Thanks Link to comment Share on other sites More sharing options...
covaks Posted February 8, 2008 Share Posted February 8, 2008 $objWMIService = ObjGet("winmgmts:\\.\root\cimv2") $objClass = $objWMIService.ExecQuery("Select * from Win32_PerfRawData_Tcpip_NetworkInterface") For $obj in $objClass msgbox(1,"","Interface: " & $obj.Name & @CRLF & _ "Bytes Received/sec: " & $obj.BytesReceivedPerSec & @CRLF & _ "Bytes Sent/sec: " & $obj.BytesSentPerSec & @CRLF & _ "Bytes Total/sec: " & $obj.BytesTotalPerSec & @CRLF & _ "Network rate: " & $obj.CurrentBandwidth) Next Link to comment Share on other sites More sharing options...
RedRum42 Posted February 8, 2008 Author Share Posted February 8, 2008 $objWMIService = ObjGet("winmgmts:\\.\root\cimv2") $objClass = $objWMIService.ExecQuery("Select * from Win32_PerfRawData_Tcpip_NetworkInterface") For $obj in $objClass msgbox(1,"","Interface: " & $obj.Name & @CRLF & _ "Bytes Received/sec: " & $obj.BytesReceivedPerSec & @CRLF & _ "Bytes Sent/sec: " & $obj.BytesSentPerSec & @CRLF & _ "Bytes Total/sec: " & $obj.BytesTotalPerSec & @CRLF & _ "Network rate: " & $obj.CurrentBandwidth) Next I don't understand what the units of the CurrentBandwidth are? My NIC is at 1 Gbps speed but the result from this example gives "10000000" Link to comment Share on other sites More sharing options...
PsaltyDS Posted February 8, 2008 Share Posted February 8, 2008 I don't understand what the units of the CurrentBandwidth are? My NIC is at 1 Gbps speed but the result from this example gives "10000000"As you might get if your GigE port was plugged into a 10Base-T device, like a cable modem...? What speed is it actually connected at, vice capable of? Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now