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.
Get mac addresses from CMD
Just run the command getmac to get the mac addresses. Find an example below.
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 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.
Get mac address of a remote computer
We can retrieve the mac addressses for a remote computer using nbtstat command.
Find your computer’s name and network address on Mac. If other people want to locate your Mac on the network, they need to know your computer’s name or network address. Your Mac has several identifiers that people may look for on the network: computer name, local hostname (or local network name), and network address.
Alternatively, We can run the below command to retrieve the mac addresses of a remote computer.
remote_computer : Full name of the remote computer or IP address
username and password are of the account on the remote computer.
- I have ip address of one of my remote server I cannot login remotely. I have the IP address and I and trying to find the mac address or interface that connected to the server. Could you tell me the command or the way to find the Switch port or mac address if you only have ip address.
- 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. Get mac addresses from CMD. Just run the command getmac to get the mac addresses. Find an example below.
- MAC Address or media access control address is a unique ID assigned to network interface cards (NICs). It is also known as a physical or hardware address. It identifies the hardware manufacturer and is used for network communication between devices in a network segment. MAC Address usually consists of six groups of two hexadecimal digits.
- How do I find the MAC address of my iOS device? To locate the MAC Address of your iPad, iPhone or iPod Touch, follow these steps: Tap Settings. The Mac address is listed as Wi-Fi Address.
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.
Mac For Iphone
No Backup To Restore On Mac For Iphone 10
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.”
Windows CMD commands reference