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
- Modem MAC address. MAC address (Media Access Control address) is a quasi-unique identifier consists of a six byte number that attached to most network adapter card or network interface card (NIC). As such, all network cards, whether it’s of Ethernet NIC, Gigabit Ethernet NIC or wireless 802.11a/b/g/n WiFi or HiperLAN adapter, should have.
- By a given MAC address, retrieve OUI vendor information, detect virtual machines, possible applications, read the information encoded in the MAC, and get our research's results regarding the MAC address.
- GETMAC /s localhost – Get local MAC Address. Each network card in your computer has its own MAC address. A typical modern will normally have an Ethernet card, a WiFi card and a Bluetooth card. Each one will have its own MAC address. That’s why you might see three different MAC addresses.
Get Mac Address For Macbook
Ran into needing the MAC address of the Ethernet port to get Internet access but not being able to get that without Internet access and going through the initial set up - chicken-egg problem. The Roku has an old style cheat code to get to the network screen w/o setup - If you cannot get through the initial setup press the home button 5 times. 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.
Example:
Example:
Mac Address On Macbook
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.
username and password are of the account on the 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
Windows CMD commands reference