以下是引用hunanwl在2014-6-29 20:27:00的发言:
为什么只能识别到 有线网卡的mac地址呢 无线网卡地址识别不出来啊

Dim query As System.Management.ManagementObjectSearcher = New System.Management.ManagementObjectSearcher("SELECT * FROM Win32_NetworkAdapterConfiguration")
Dim queryCollection As System.Management.ManagementObjectCollection = query.Get()
Dim mo As New System.Management.ManagementObject
For Each mo In queryCollection
If IsDBNull(mo.Item("macaddress")) = False Then
If mo.Item("macaddress") <> "" Then
output.show(mo.Item("macaddress"))
End If
End If
Next