Mac Address From Command Line: Remote Computer [CMD]

By | April 2, 2022

By using the command “getmac”, we can find out a computer’s mac address. A mac address can also be obtained from a remote computer using this. This command is used in the following examples. The program is compatible with Windows 7, Windows 8.1/8, Windows 10, and Server 2008/2003.

How to Get Mac Address From Command Line:

Mac Address From Command Line: Remote Computer [CMD]
You need to the mac addresses by running the command getmac. Below, you will find a sample.

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:\>

Network connections that are disabled will not be listed by this command. Using, ncpa.cpl you can verify NICs that have been disabled. Furthermore, I’ve heard that It does not have any effect on indicating what the mac address of a device is. As an example, the output of getmac when It’s time to get my WiFi card’s mac address does not provide me with any useful information. Using this, ipconfig we can resolve this issue.

C:\>ipconfig /all
Windows IP Configuration
   Host Name . . . . . . . . . . . . : PC-10234
   Primary Dns Suffix  . . . . . . . : mydomain.com
   
   DNS Suffix Search List. . . . . . : mydomain.com
                                       mydomain.com
Wireless LAN adapter Wireless Network Connection:
   Connection-specific DNS Suffix  . : mydomain.com
   Description . . . . . . . . . . . : Intel(R) Centrino(R) Advanced-N 6205
   Physical Address. . . . . . . . . : 3C-99-88-64-A1-F0
   
Ethernet adapter Local Area Connection:
   Connection-specific DNS Suffix  . : mydomain.com
   Description . . . . . . . . . . . : Intel(R) 82579LM Gigabit Network Connection
   Physical Address. . . . . . . . . : 73-2B-4F-D5-12-A0
  
C:\>

Does CMD Get Mac Address of Remote Computer?

With the nbtstat command, This information can be retrieved from a remote computer’s mac address.

A few examples:

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.

The command below can also be used to get a remote computer’s mac address.

getmac /s remote_computer /u username /p password

Alternatively, you can use the IP address located on a remote computer. Log on to the remote computer with the user name and password of the account consists of.

A few examples:

C:\>getmac /S remotepc.domain.com  /u administrator /p adminpassword
Physical Address    Transport Name
=================== ==========================================================
22-15-25-9C-3A-29   Media disconnected
34-11-45-7A-9C-48   \Device\Tcpip_{678DD7BB-675D-4E4C-E0AE-A261490EBE8C}

The /p a parameter can be skipped if the password is not to be specified. Once the password has been entered, the command will be executed.

Get An Errors:

  • It is important to obtain the mac addresses of each of the devices that are running the software a Windows operating system using the getmac command. You will get an error result, It is not possible to access the RPC server. If you try this on a Linux machine.
  • You would receive an error message that the login failed due to the error “Unknown user details/name” or incorrect password” if you enter an incorrect password.

Read: Mkdir Command Prompt: How to Create Directory in CMD

FAQs –

Question: Can you get the MAC address from the IP address?

Answer: You can use the network address to determine the MAC address by pinging the device. ARP is then entered. In the results, you will find the IP address. IP addresses are followed by Mac addresses.

Question: How to get Mac Address cmd?

Answer: MAC addresses can be retrieved by opening a Command Prompt. Press Enter after typing ipconfig/all. MAC addresses are Physical Addresses.

Leave a Reply

Your email address will not be published. Required fields are marked *