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?
1 Answer
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
-
It should be noted that both commands need to be executed with supervisor privileges.– zx485Mar 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.– jwwSep 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
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.