You can find out the mac address (physical address) of a computer with the getmac command on MS Windows 11, 10, ... etc.!This can also be used to get the Mac address for remote computers. The following are some examples of using this command. It works under the operating systems Windows 11, 10, 8.1, ... and under the popular Microsoft Server 2022, 2019, 2016, ... operating systems! Contents: 1.) ... Finding out the Mac address via the command prompt!
|
(Image-1) Query the Mac address via the command line om Windows 11, 10, ...! |
![]() |

2.) Query the Mac address of a remote computer from Windows 11, 10, ... etc.!
Run the following command to get the Mac addresses of a remote computer.getmac /s remote_computer /u username /p password
The full name of the remote computer, or the username and password of the IP address, refer to the account on the remote computer.
Example:
C: \> getmac /s remotepc.example.com /u administrator /p admin password
transport name of the physical address
============================ ==========================
25-18-25-9C-3B-19 Media separated
34-41-47-7B-AC-88 \ Device \ Tcpip_ {678DD7BB-675D-4E4C-E0AE-A261490EBE8C}
C: \> getmac /s remotepc.example.com /u administrator /p admin password
transport name of the physical address
============================ ==========================
25-18-25-9C-3B-19 Media separated
34-41-47-7B-AC-88 \ Device \ Tcpip_ {678DD7BB-675D-4E4C-E0AE-A261490EBE8C}
3.) Query Linux computer with the command getmac?
The getmac command will only allow us to get the Mac addresses of the computers that are running Windows. If you try to do this on a Linux computer, you receive an error message "The RPC server is not available".
If you enter an incorrect password, the command fails with the error message "Logon failure": unknown user name or incorrect password Alert!
4.) What should you watch out for when querying the MAC address?
This command (getmach) does not display Mac addresses for the disabled network connections. You can run ncpa.cpl and check which network cards are disabled. Also, I've received comments that this command does nothing to help determine the Mac address for a specific device. For example, when I need to get the Mac address for my WiFi card, the output of the getmac command is not helpful. We can use the ipconfig command to deal with this.
►► A shortcut on the Windows desktop for network adapters!
►► Windows 10 network adapter!
FAQ 92: Updated on: 23 June 2022 08:51