是要这样吗?论坛很多这样的 信息吧$MAC = "45:87:FC:8C:86:68"
_wmi_SettingID($MAC)
Func _wmi_SettingID($MAC1)
Local $wbemFlagReturnImmediately = 0x10
Local $wbemFlagForwardOnly = 0x20
Local $colItems = ""
Local $strComputer = "localhost"
Local $objWMIService = ObjGet("winmgmts:\" & $strComputer & "\root\CIMV2")
$colItems = $objWMIService.ExecQuery("SELECT * FROM Win32_NetworkAdapterConfiguration WHERE IPEnabled != 0", "WQL", _
$wbemFlagReturnImmediately + $wbemFlagForwardOnly);固定IP\IP地址\MAC地址
For $objItem In $colItems
If $objItem.MACAddress = $MAC1 Then
MsgBox(4096,"SettingID","SettingID: " & $objItem.SettingID )
EndIf
Next
EndFunc
|