How-To Geek

How To Quickly Get The MAC Address of any Windows PC on Your Network


Did you know you can get any Windows computer’s MAC address without leaving your chair?

Simply open a command prompt and type:

getmac /s viper


If you are not on a domain, you may have to use the /U switch and pass the name of an administrator account on the other computer.

getmac /s <machine> /u <username> /p <password>

If you have issues with that, you can always use the arp command. You can use the ping command to figure out the IP address of a computer name, and then use this syntax:

arp -a <ipaddress>

There are probably a lot of other ways to get the information, but this will work.

  • Xhi

    Hmmm. When I try it it wants a password from the computer I am on, Medion-PC. The legitimate password does not work.

  • Lowell Heddings

    Yeah, it's doing the same thing for me. I'm guessing it only works on a Windows domain, but we'll get @taygibb to let us know what the deal is.

  • Harry S

    Works fine for me. Window 7 64 bit

  • Taylor Gibb

    @xhi @geek use this if you are not on a Domain: getmac /s viper /U administrator /P Viper$Replace username and password with those of an account on the remote machine. Soon as someone can confirm this also works for them ill update the article.

    Also after some testing with @geek this doesnt appear to work with Microsoft Accounts, so you will have to use local creds.

  • Xhi

    This if I did it right did not work for me.


    The computer I'm on has no user password for user xhi. The computer upstairs has user xhi with the password I typed.

  • Taylor Gibb


  • Taylor Gibb

    @xhi Ok i read your post wrong at first. Change your username to upstairs\xhi

  • Xhi

    I actually got up from my chair and went upstairs to verify the password, lol. No luck yet.


  • Taylor Gibb

    @xhi LOL. What operating systems are you using?

  • Lowell Heddings

    I'm not having luck either, but I'm thinking I must have a setting wrong somewhere. I can't access the shared folders on that computer either.

  • Xhi

    I was on vista to a windows 7. But, I just went into my office and tried W7 to W7 and same result.

  • Taylor Gibb

    I wont lie here, i dont have any idea as to why its not working for you. However, the fact that it also works for @the1aitch leads me to suspect a config error.

    @xhi The fact that you using the same name for both user accounts may or may not have something to do with it. Thats the only thing i can actually think of. @geek does your setup use the same names?

  • Xhi

    Tried it Windows 7 to a Windows 8 computer and got

    Error: the RPC server is unavailable.

    Have no idea what that is.

  • Taylor Gibb

    @xhi I just got the same message on one of my setups, i think i may be on to something.

  • Taylor Gibb

    @xhi OK as a test disable your firewall on all network profiles (if you are using the built in firewall) on the Windows 8 machine. Then try go from the Windows 7 machine to the Windows 8 machine like above, you shouldnt get an RPC error anymore.

  • Iszi

    Why don't we just use arp? Sure, it takes two steps. But it's quick and fairly reliable. Ping the hostname to get the IP and verify it's up, then just arp -a | find "" (replace x's with the IP). No admin login required.

  • Taylor Gibb

    @Iszi Mostly because i didnt think of that. Also because i was using the technique i wrote apart as part of a much bigger project im working on.

    5 points that though, its an awesome tip!

  • Lowell Heddings

    Just updated the article to mention that. Definitely simpler.

    I figured out an interesting tip while testing.. I was pinging my desktop and it defaulted to IPv6. The ping command supports a -4 argument to force pinging IPv4 instead. So like ping -4 PCNAME.

  • Xhi

    Turning off firewall got me back to password not recognized.

  • James

    I guess it's not so quick.

  • A happy

    On a side-note, why is the image got Comic Sans in it... angry

  • Doctordeere

    Why settle for monitoring only the WinDoze devices attached to your network?Why not just use NirSoft's network monitor?

    "For every computer or device that is connected to your network, the following information is displayed: IP address, MAC address, the company that manufactured the network card, and optionally the computer name."

  • pompeychimes

    Important to note that you'll only see the mac address of a device if its on the same IP subnet as your device. If for example your computers IP address is with a mask of you wont be able to see the mac address of a device with the IP address of

  • Iszi

    I love Nir's tools, and highly recommend them. That said, all of the information you've listed is available via built-in tools or other readily available resources. ARP will give you IP/MAC of the devices on your local subnet. Ping -A can get you the hostname. Google will help you find the NIC manufacturer.

    Certainly keep Nir's tools in your belt alongside Sysinternals, but it's still good to know how to get along without them if needed.

    A great way to get all the Nirsoft & SysInternals tools accessible & updateable in one interface is to use KLS SOFT's Windows System Control Center.

Taylor Gibb is a Microsoft MVP and all round geek, he loves everything from Windows 8 to Windows Server 2012 and even C# and PowerShell. You can also follow him on Google+

  • Published 05/10/13


Enter Your Email Here to Get Access for Free:

Go check your email!