PowerShell: Get System UUID

Need to check a machine's UUID - a unique hardware identifier used for asset tracking, license binding, or system identification? This one-liner pulls it straight from the system.

Prerequisites:

  • Privileges: None
  • Module: Built-in, no import needed

Quick Command:

Get-CimInstance -ClassName Win32_ComputerSystemProduct | Select-Object UUID

Example Output:

UUID
----
04E1B6D0-1CCB-4576-ACAB-85A03D232434
📦
Want all of them at once?
Get every free one-liner from this blog in a single downloadable bundle organized by category, each with full comment-based help. No more copy-pasting one at a time.

How It Works:

  • Get-CimInstance -ClassName Win32_ComputerSystemProduct queries a class that holds product-level identification info about the machine.
  • UUID returns a unique identifier (Universally Unique Identifier) assigned to the system - typically burned into the motherboard/firmware at manufacture time, and used by things like asset management tools, virtualization platforms, and some licensing systems to uniquely identify a specific machine.

Pro Tip:

Unlike serial numbers, the UUID format is consistent across manufacturers and virtual machines alike, making it a more reliable identifier when working across mixed physical/virtual environments.