如何在 Windows 10 上获取单个接口的 MAC 地址信息?

如何在 Windows 10 上获取单个接口的 MAC 地址信息?

如题。

我试过了:

  • netsh:看不到 mac 地址
  • ipconfig:找不到显示单个接口的方法
  • getmac:与 ipconfig 相同

有任何想法吗?

答案1

样本:

C:\> wmic nicconfig get Description,MacAddress Description MACAddress Realtek 8821AE Wireless LAN 802.11ac PCI-E NIC 40:B8:9A:48:07:21 Microsoft Kernel Debug Network Adapter Realtek PCIe GBE Family Controller 68:F7:28:E8:EE:42 Microsoft ISATAP Adapter Bluetooth Device (RFCOMM Protocol TDI) Bluetooth Device (Personal Area Network) 40:B8:9A:48:07:22 Microsoft Wi-Fi Direct Virtual Adapter 42:B8:9A:48:07:21 Microsoft Teredo Tunneling Adapter

C:\> wmic nicconfig Where "Description='Realtek 8821AE Wireless LAN 802.11ac PCI-E NIC'" get Description,MacAddress Description MACAddress Realtek 8821AE Wireless LAN 802.11ac PCI-E NIC 40:B8:9A:48:07:21

C:\> wmic nicconfig Where "Description='Realtek 8821AE Wireless LAN 802.11ac PCI-E NIC'" get MacAddress /FORMAT:LIST

MACAddress=40:B8:9A:48:07:21

C:\>

相关内容