10

I was installing some software and it said that the locking criteria is the system UUID. Now I know what UUID stands for. I know they are unique and are 128 bits long. I know how to generate them from a windows power shell. But my question is what is the system UUID on a windows 7 machine. Where is it stored. And what is the purpose behind having a UUID for every computer? Could someone please clear these doubts for me? What are they used for apart from verifying that the same software is not installed again on the same computer?

2
  • Hm, there are multiple IDs here. First of all every Windows machine has a machine security identifier (SID) and if it is domain joined it gets a domain-sid as well. To change the first one the system must be rebooted with the sysprep tool, the second one changes when you register the machine in the domain. Both are not real UUIDs (but unique IDs). There is a hardware machine UUID (in fact I think multiple), there is the network card MACs, there are filesystem and disk IDs and many more..
    – eckes
    Jun 7, 2017 at 19:56
  • The UUID in the mainboard is used I think for windows activation as well (wmic csproduct get UUID). Not beeing able to change them is to make spoofing harder, to reduce accidents and because some stuff depends on it. It is not clear which UUID is the one you care about. However if you are entitled to move the software then your vendor should tell you how, dont crack it.
    – eckes
    Jun 7, 2017 at 19:56

1 Answer 1

4

System UUID cannot be changed : it depends upon the hardware. It is determined at creation time by the hypervisor : KVM, Hyper-V, VMWare, ...

You can get the UUID this way :

On Windows

cmd.exe

wmic csproduct get UUID 

Powershell

Get-WmiObject -Class "Win32_ComputerSystemProduct" | Select-Object -Property UUID 

On Linux based Systems

#! /bin/sh
dmidecode -s system-uuid
5
  • It should be noted that both commands need to be executed with supervisor privileges.
    – zx485
    Mar 18, 2019 at 22:27
  • I have a problem with my KVM, UUID on windows are not identical... Sep 20, 2019 at 8:34
  • "System UUID cannot be changed" - Not true. Programs like Ghost, which is used to clone workstations from a master image, change the UUID for each newly installed image. If the UUID was not changed, then a workstation would encounter obscure errors when trying to join the domain.
    – jww
    Sep 22, 2019 at 5:37
  • @jww Does it change the system UUID (which can be read out of the motherboard's firmware by Linux via dmidecode)? That seems out of scope of a disk clone operation, no matter how OS-aware. Sep 14, 2022 at 15:47
  • @jww Programs like ghost creates a copy of the DMI system UUID. Consequently, it is a new machine and a new UUID is created. Sep 19, 2022 at 12:31

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .