How to get hardware MAC address on Windows

前端 未结 3 1302
滥情空心
滥情空心 2020-12-29 09:23

I\'m playing around with retrieving the MAC address from the NIC - there are a variety of ways to get it, this article covers the most common:

http://www.codeguru.co

3条回答
  •  伪装坚强ぢ
    2020-12-29 09:50

    You can use WMI to enumerate the Win32_NetworkAdapter instances and look at the MACAddress property. The main issue with this technique is finding the appropriate adapter instance if you have multiple active adapters installed, e.g. on a laptop which also has a wireless connection.

提交回复
热议问题