Command Line to Display UUID or MAC Address of a Computer

In the event that you’re using UUID or MAC Address to uniquely identify computers in a database (the MDT database or SCCM for example) you might want a quick and easy way of getting these values from the Command Prompt on the target computer…

UUID

wmic csproduct get "UUID" > C:\UUID.txt

MAC Address

wmic nic get "MACAddress" > C:\MAC.txt

or

ipconfig /all | find /i "phy" > C:\MAC.txt

/ JC

5 thoughts on “Command Line to Display UUID or MAC Address of a Computer

  1. Graham Hope

    Go PowerShell JC, WMIC is good if you just want a list but If you want to know which MAC Address corresponds to which device this works and there’s lots of properties you can get other than these:

    $NIC = Get-NetAdapter
    $nic.name
    $nic.InterfaceDescription
    $nic.MacAddress

    Reply
  2. 688

    Your style is so unique compared to other folks
    I’ve read stuff from. I appreciate you for posting when you’ve got the opportunity, Guess I will just bookmark this
    site.

    Reply

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.