get The local Mac Address
Dim moc As ManagementObjectCollection
Dim mo As ManagementObject
mc = New ManagementClass("Win32_NetworkAdapterConfiguration")
moc = mc.GetInstances() '' Get all network adapter instances
For Each mo In moc
If mo.Item("IPEnabled") = True Then
TextBox1.Text = mo.Item("MacAddress").ToString()
End If
mo.Dispose()
Next
Tags:
作者:佚名评论内容只代表网友观点,与本站立场无关!
评论摘要(共 0 条,得分 0 分,平均 0 分)
查看完整评论