MACアドレスを取得する

MACアドレスを取得する

バッチ

コマンド:


wmic NIC get Name,NetConnectionID,Caption,MACAddress /value

実行例:


C:\>wmic NIC get Name,NetConnectionID,Caption,MACAddress /value

Caption=[00000000] Microsoft Kernel Debug Network Adapter
MACAddress=
Name=Microsoft Kernel Debug Network Adapter
NetConnectionID=
Caption=[00000001] Intel(R) 82574L Gigabit Network Connection
MACAddress=00:0C:29:89:9E:EA
Name=Intel(R) 82574L Gigabit Network Connection
NetConnectionID=Ethernet0
Caption=[00000002] Bluetooth Device (RFCOMM Protocol TDI)
MACAddress=
Name=Bluetooth Device (RFCOMM Protocol TDI)
NetConnectionID=
Caption=[00000003] Bluetooth Device (Personal Area Network)
MACAddress=88:78:73:6A:AA:A8
Name=Bluetooth Device (Personal Area Network)
NetConnectionID=Bluetooth ネットワーク接続
Caption=[00000004] Microsoft Teredo Tunneling Adapter
MACAddress=
Name=Teredo Tunneling Pseudo-Interface
NetConnectionID=

コマンドサンプル一覧