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

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

MAC Address

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

or

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