Skip to content

v_34: Update UUID source for Windows

Choose a tag to compare

@artemlos artemlos released this 22 Apr 13:05
· 62 commits to master since this release

When the machine code, we rely on the UUID that is provided by the OS. On Windows, we used to use wmic to obtain the UUID. As pointed out by @pmnforce in #50, it will be deprecated in Windows 11. We are thus switching to a different method to compute it, i.e., as follows:

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

Based on our tests, this will not affect the value of the machine code, i.e., this update is backwards compatible.