whoami /user

Get-WmiObject -Class SoftwareLicensingService | Select-Object ProductID Used by IT departments to uniquely identify a machine.

Get-WmiObject -Class Win32_ComputerSystemProduct | Select-Object -ExpandProperty UUID

Here’s a clean, educational write-up covering the legitimate ways to find a Windows and System IDs (like UUID, Device ID, or SID).

wmic path softwarelicensingservice get OA3xOriginalProductID Or for the installed Product ID:

Settings → Accounts → Access Work or School → Click on connected account → Info → Device ID

wmic useraccount get name,sid Used in Microsoft Entra ID (Azure AD) or Intune management.