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

  • /v

    Shows more detail: connection name, adapter and transport name.

  • /fo formato

    Output format: table, list or csv.

  • /nh

    Does not show the header row in the table and csv formats.

  • /s equipo

    Remote computer to query.

  • /u usuario

    User to connect to the remote computer as.

Usage examples

  • getmac

    Shows the adapters' MAC addresses.

  • getmac /v

    Shows the MAC with the name of the adapter it belongs to.

  • getmac /fo csv /nh

    Shows the addresses as CSV with no header, to process them.

  • getmac /fo list

    Shows 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.

Related commands