COMMAND
getmacList network adapter MAC addresses
getmac lists the MAC address of every network adapter on a Windows machine, with the transport name for each. It is a focused alternative to ipconfig /all when the hardware addresses are all you need, and it can query remote machines.
Purpose
getmac reports the MAC addresses of the local (or a remote) machine's network adapters. Its typical uses are setting up DHCP reservations, MAC filtering, 802.1X/RADIUS enrolment, and quickly identifying an adapter's hardware address.
Basic use
getmac /v /fo listConnection Name: Ethernet
Network Adapter: Intel(R) Ethernet Connection
Physical Address: A4-5E-60-1B-2C-3D
Transport Name: \Device\Tcpip_{9F...}
Connection Name: Wi-Fi
Network Adapter: Intel(R) Wi-Fi 6 AX201
Physical Address: 12-34-56-78-9A-BC
Transport Name: Media disconnectedOptions
| Option | Effect | ||
|---|---|---|---|
/v | Verbose: include connection and adapter names | ||
/fo list \ | table \ | csv | Output format |
/nh | No header (for scripting) | ||
/s /u /p | Query a remote machine with credentials |
Reading a locally administered address
A first byte with the second-lowest bit set (values ending 2, 6, A or E in the first octet, such as 12-34-…) indicates a software-assigned address, which is what MAC randomisation and virtual machines produce. Manufacturer-assigned addresses have that bit clear. See MAC address for the format details.
Common mistakes
- Expecting IP information. getmac shows only hardware addresses; use ipconfig for IPs.
- Confusing a randomised Wi-Fi MAC with the real one. Windows 11 can present a per-network random address; the physical adapter address is shown in
ipconfig /allas the permanent address only when randomisation is off for that network.
PowerShell equivalent
Get-NetAdapter | Select-Object Name, MacAddress, Status lists adapters with their MAC and link state as objects.
Frequently asked questions
getmac vs ipconfig /all for MAC addresses?
Both show MACs. getmac is more compact and lists only the physical addresses and transports; ipconfig /all shows the MAC alongside IP configuration. Use getmac when you just want the hardware addresses, for example to set up a DHCP reservation.
Why does a MAC show as "N/A" or "Disabled"?
The adapter is disconnected or disabled; getmac cannot read a transport name for it. Enable or connect the adapter to see its address.