getmac
Windows CMD · Network · reference only
What it does
Shows the MAC addresses of the machine's network adapters, or of a remote computer.
Syntax
getmac [opciones]
Options and parameters
/vShows more detail: connection name, adapter and transport name.
/fo formatoOutput format: table, list or csv.
/nhDoes not show the header row in the table and csv formats.
/s equipoRemote computer to query.
/u usuarioUser to connect to the remote computer as.
Usage examples
getmacShows the adapters' MAC addresses.
getmac /vShows the MAC with the name of the adapter it belongs to.
getmac /fo csv /nhShows the addresses as CSV with no header, to process them.
getmac /fo listShows each item on its own line.
Notes and common mistakes
- An address shown with the text media disconnected belongs to an adapter with no connection.