Is there a reliable way to get the machine "Device ID"? That is found in Settings | System | About ?
I have been reading it from the registry at:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OneSettings\WSD\SetupPlatform\QueryParameters
But, had a customer that it turned up blank on - instead their Device ID was in:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OneSettings\WSD\UpdateAgent\QueryParameters
On my machine it is in both places. Is one more reliable than the other? I don't know the difference between the two.
Would like some code to find the DeviceID reliably on any Windows 10 machine.
Getting Windows 10 Device ID Topic is solved
Re: Getting Windows 10 Device ID Topic is solved
What I read anyway:
Code: Select all
MsgBox, 64, Device ID, % deviceID()
deviceID() {
RegRead, deviceID, HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SQMClient, MachineId
Return RegExReplace(deviceID, "[{}]")
}