There is a way to get the link speed using VBScript, but I can't find a WMI class that will give you the duplex status.
Here's a sample script that will output the speed of all your network adapters
On Error Resume Next
Const wbemFlagReturnImmediately = &h10
Const wbemFlagForwardOnly = &h20
arrComputers = Array("JOENEW")
For Each strComputer In arrComputers
WScript.Echo
WScript.Echo "=========================
WScript.Echo "Computer: " & strComputer
WScript.Echo "=========================
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\WMI")
Set colItems = objWMIService.ExecQuery("S
wbemFlagReturnImmediately + wbemFlagForwardOnly)
For Each objItem In colItems
WScript.Echo "Active: " & objItem.Active
WScript.Echo "InstanceName: " & objItem.InstanceName
WScript.Echo "NdisLinkSpeed: " & objItem.NdisLinkSpeed
WScript.Echo
Next
Next
Main Topics
Browse All Topics





by: the_b1ackfoxPosted on 2008-03-28 at 18:50:48ID: 21235150
I have been in networking for more years then I care to admit to... And I do not believe there is a way to do this via the command line...