Professional Documents
Culture Documents
≡ MENU
We can find mac address (physical address) of a computer using the command ‘getmac‘.
This can be used to get mac address for remote computers also. Below are few examples on
how to use this command. It works on XP, Vista, Windows 7, Server 2003 and Server 2008
operating systems.
C:\>getmac
Physical Address Transport Name
=================== ==========================================================
2C-3F-45-02-1B-32 \Device\Tcpip_{7E49B486-120A-4BC2-2114-B345A4D5C5}
10-13-17-BC-12-48 Media disconnected
22-B3-C5-30-76-78 \Device\Tcpip_{213E8D2A-1DBE-4240-8301-BE6F3EACAF9D}
00-05-2A-3C-78-00 \Device\Tcpip_{F01E3FC2-A5A1-6940-D1A1-C7521AEC4296}
2C-23-45-14-23-AD Media disconnected
C:\>
This command does not show mac addresses for the network connections which are
disabled. You can run ncpa.cpl and check which NICs are disabled. Further, I have received
https://www.windows-commandline.com/get-mac-address-command-line/ 1/17
3/25/2020 Get mac address from command line (CMD)
comments that this command does not help identify the mac address for a specific device.
For example, if I need to get the mac address for my WiFi card, output of getmac command
is not helpful. We can use ipconfig command to deal with this.
PAYPAL MAKES
IT POSSIBLE
Start shopping
C:\>ipconfig /all
Windows IP Configuration
Host Name . . . . . . . . . . . . : PC-10234
Primary Dns Suffix . . . . . . . : mydomain.com
C:\>
https://www.windows-commandline.com/get-mac-address-command-line/ 2/17
3/25/2020 Get mac address from command line (CMD)
C:\>nbtstat -a 10.63.71.55
Local Area Connection:
Node IpAddress: [10.59.13.47] Scope Id: []
NetBIOS Remote Machine Name Table
Name Type Status
--------------------------------------------
7CF71D1C3B05 UNIQUE Registered
MAC Address = 00-00-00-00-00-00
Wireless Network Connection:
Node IpAddress: [10.63.71.58] Scope Id: []
NetBIOS Remote Machine Name Table
Name Type Status
--------------------------------------------
7CF71D1C3B05 UNIQUE Registered
MAC Address = 7C-F7-1D-1C-3B-05
Local Area Connection 2:
Node IpAddress: [0.0.0.0] Scope Id: []
Host not found.
Alternatively, We can run the below command to retrieve the mac addresses of a remote
computer.
Example:
If you do not want to specify the password, you can skip /p parameter. You will be
prompted to enter the password and the command execution will take place after that.
Errors:
Using getmac command we can retrieve the mac addresses of the machines running
windows OS only. If you try this for a Linux machine you would get the error “The RPC
server is unavailable.”
If you provide incorrect password, the command would fail with the error message “Logon
failure: unknown user name or bad password.”
Also Read:
Windows CMD commands reference
https://www.windows-commandline.com/get-mac-address-command-line/ 4/17
3/25/2020 Get mac address from command line (CMD)
Bruce
REPLY LINK
tahir
LINK
Totoche
if the remote computer is on the same network segment then yours you can do this:
ping remoteComputerNameOrIpAddress
arp -a
“arp -a” should tell you which MAC address is associated with the remote computer’s IP
address.
https://www.windows-commandline.com/get-mac-address-command-line/ 5/17
3/25/2020 Get mac address from command line (CMD)
If the remote computer is not on the same network segment, I’m sorry but it is impossible
(and it has no sense) to do this.
Totoche
REPLY LINK
balamurugan
REPLY LINK
admin
Physical address is nothing but mac address. You can find it using getmac command as
described above or you can also use ipconfig command for getting physical/mac
address using command prompt.
LINK
HARSH SHAH
Can you give me solution for below error. I am using Windows 7 32 bit OS . My system
can’t read MAC ID.
When i run GETMAC , i can see Physical Address, But in Transport Name , it is Media
disconnected.
My ISP is asking for MAC ID, which is given by me. But due to MEDIA DISCONNECTED
Message ISP Can not read my MAC and i am unable to Use ISP Service.
REPLY LINK
admin
Mac id is nothing but the physical address. You can reply them with whatever you see
in physical address column.
https://www.windows-commandline.com/get-mac-address-command-line/ 6/17
3/25/2020 Get mac address from command line (CMD)
LINK
jonnyxx
you can get the mac of any device on the network by using the arp -a command.
Any device, not just windows, eg wireless camera. Hope this helps. Cheers :)
REPLY LINK
rockman510
Thank you! arp -a [IP] was exactly what I needed to find the MAC of a printer I was
looking for.
LINK
logesh
OS – Windows XP
REPLY LINK
Amit
Nice Info.
However this does not work if you are trying to get Mac address of Dump devices like
printers, switches, etc. Neither does ARP.
REPLY LINK
https://www.windows-commandline.com/get-mac-address-command-line/ 7/17
3/25/2020 Get mac address from command line (CMD)
Jake
REPLY LINK
Arvind
Thanks Jake, you hit the nail. This is what solved my problem. Cheers
LINK
Rini
LINK
ihsan
if there are 200 users on a DHCP server in a network are u have been told that find the ip,s
and as well as the mac address,s of the machines………what should be the procedure to it?
REPLY LINK
drikus
Good day. I need to find a mac adress of a remote site sagem ma500. Can see it on the
system but remote log on by sagem check do not give the mac adress. I am on a different ip
range as the device. What program can i down load. the above will not work for this device.
Thank you
REPLY LINK
Ravi
https://www.windows-commandline.com/get-mac-address-command-line/ 8/17
3/25/2020 Get mac address from command line (CMD)
I’m using windows 8.1 and when I am hitting enter after typing ipconfig /all it is showing
that ‘ipconfig’ is not recognized as an internal or external command what should I do now
??
REPLY LINK
Manuel Carrero
Make sure you are running as administrator just go to the bottom left corner of your
screen and right click, on the menu select Command Prompt (Admin)
LINK
jack
REPLY LINK
Mark Roberts
When i run the Getmac command it returns 3 mac addresses. Which one is correct? What
are the other 2 Mac addresses listed and what order do they appear in ?
REPLY LINK
mol
thanks!
LINK
Dave
https://www.windows-commandline.com/get-mac-address-command-line/ 9/17
3/25/2020 Get mac address from command line (CMD)
LINK
Ali
That’s not helpful :( ! because it does not specify which mac goes to which device. e.g. mine
shows 7 devices while i want to know lan’s
REPLY LINK
admin
ipconfig /all helps to identify the mac address for each device.
LINK
https://www.windows-commandline.com/get-mac-address-command-line/ 10/17
3/25/2020 Get mac address from command line (CMD)
Ali
LINK
Nonso
REPLY LINK
rajvir
Can u ppl please confirm till how much time the MAc address with Ip will be present in the
routing table of system ?
REPLY LINK
mk
Thanks a lot
REPLY LINK
Dexter
I have a question. What does the Transport Name really mean, its use? Is it unique and two
devices can never have same Transport Name? Can it be spoofed?
REPLY LINK
Rajkumar Swami
I have mac address of device. How to get IP address of a device based on mac address?
https://www.windows-commandline.com/get-mac-address-command-line/ 11/17
3/25/2020 Get mac address from command line (CMD)
REPLY LINK
Jang
REPLY LINK
Krix
How do you get the mac address of your own computer from the cmd
REPLY LINK
Will
REPLY LINK
AFF
Hi, is there any way to get a mac address of an ethernet device that was previously
connected to my computer?? The device that I’m trying to find is a Mikrotik that was stolen
from my roof…
Thanx in advance!!
https://www.windows-commandline.com/get-mac-address-command-line/ 12/17
3/25/2020 Get mac address from command line (CMD)
REPLY LINK
Leave a Comment
Name *
Email *
Website
Comment
Submit
E-mail Newsletter
E-mail Subscribe
https://www.windows-commandline.com/get-mac-address-command-line/ 14/17
3/25/2020 Get mac address from command line (CMD)
PAYPAL MAKES
IT POSSIBLE
Learn More
C ATEGORIES
Automation (2)
Directories (5)
Download (1)
Files (31)
Java (2)
Network (6)
https://www.windows-commandline.com/get-mac-address-command-line/ 15/17
3/25/2020 Get mac address from command line (CMD)
PowerShell (5)
Uncategorized (43)
WMIC (1)
https://www.windows-commandline.com/get-mac-address-command-line/ 16/17
3/25/2020 Get mac address from command line (CMD)
PAYPAL
MAKES IT
POSSIBLE
Start shopping
https://www.windows-commandline.com/get-mac-address-command-line/ 17/17