How to View the MAC Address of a (Remote) System with "getmac" Command

How to View the MAC Address of a (Remote) System with "getmac" Command

This article is based on an extract from the book "Windows 7, Portable Command Guide" / chapter 13 "Troubleshooting Network Issues" / sub chapter "Viewing the Physical Address with getmac", starting with page 151.

Authored by Darril Gibson and published by Pearson Education, Inc, in 2011.

See de.scribd.com/.../67827130-Windows-7-Portable-Command-Guide-MCTS-70-680-70-685-70-686  for details.

Introduction

The getmac command is a simple way to view the Media Access Control (MAC) address of a Network Interface Card (NIC).

Note --> Every network adapter has a MAC address. The address is unique for every network adapter across the world.

getmac


By executing "getmac" command without any switches, you can view the MAC address of the system that you have executed "getmac" on it. Look at the following image:



The "Transport Name" identifies the NIC by the Globally Unique Identifier (GUID).

Note 1: If you want to find the actual NIC name by using its GUID, refer to the following registry key:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkCards

Now check the subkeys of the NetworkCards and try to find the actual name of the NIC by using its GUID. Look at the following example:





There are several switches you can use with the getmac command. These switches are:

getmac /v


Provides a verbose output. Using this switch adds the "Connection Name" and "Network Adapter" name to the displaying output. Look at the following example:



getmac /fo [table | list | csv]


You can use the /fo switch to change the format of the output. The default format is table. When retrieving verbose output using the table format, some of the data is truncated and so you can't easily manipulate them. The list format shows the complete output. Look at the following figure:



By using csv format, the output is also displayed in table format, but it does not truncated. See the following example:



getmac /s system /u username /p password


You can use the /s switch to run the command on a different computer. You’ll also need to specify the username and password of an account that has permissions on the remote system.

In the following example, the command is run on the computer named "dc1" in the "contoso.local" domain with the "administrator" account




Leave a Comment
  • Please add 1 and 1 and type the answer here:
  • Post
Wiki - Revision Comment List(Revision Comment)
Sort by: Published Date | Most Recent | Most Useful
Comments
  • Peter Geelen - MSFT edited Revision 14. Comment: Added source reference

  • Carsten Siemens edited Revision 9. Comment: Added tags: Candidate for Deletion, Plagiarism. See my posted comment for details.

Page 1 of 1 (2 items)
Wikis - Comment List
Sort by: Published Date | Most Recent | Most Useful
Posting comments is temporarily disabled until 10:00am PST on Saturday, December 14th. Thank you for your patience.
Comments
  • Easy steps

  • This article is a plagiarism!

    The article is a word-by-word copy from the book "Windows 7, Portable Command Guide" / chapter 13 "Troubleshooting Network Issues" / sub chapter "Viewing the Physical Address with getmac", starting with page 151.

    The book was written by Darril Gibson and was published by Pearson Education, Inc, in 2011.

    See de.scribd.com/.../67827130-Windows-7-Portable-Command-Guide-MCTS-70-680-70-685-70-686 for details.

  • Carsten Siemens edited Revision 9. Comment: Added tags: Candidate for Deletion, Plagiarism. See my posted comment for details.

  • Thanks for your clarification!

  • Peter Geelen - MSFT edited Revision 14. Comment: Added source reference

  • Added article source reference.

Page 1 of 1 (6 items)