Skip to content

v1.25: Update method to obtain UUID

Choose a tag to compare

@artemlos artemlos released this 28 Jun 12:57
· 16 commits to master since this release

This version changes the way UUID is computed on Windows with v=2 (i.e. when either Helpers.GetMachineCode or Helpers.IsOnRightMachine is called with version parameter set to 2). Instead of using WMIC, the following command is used instead:

cmd /c powershell.exe -Command "(Get-CimInstance -Class Win32_ComputerSystemProduct).UUID"

Please note that in case of an error when retrieving the UUID, null will be returned.