作者:
GodIsland (搞不定嗎用C4就對了)
2017-08-30 09:31:49https://www.autoitscript.com/forum/topic/93409-network-link-speed/
$strServer = "."
$objWMI = ObjGet("winmgmts://" & $strServer & "/root\WMI")
$objInstances = $objWMI.InstancesOf("MSNdis_LinkSpeed",48)
For $objInstance in $objInstances
With $objInstance
;ConsoleWrite( .Active & @CRLF)
ConsoleWrite( .InstanceName & @CRLF)
ConsoleWrite( .NdisLinkSpeed & @CRLF)
EndWith
Next