Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Generating a Hardware-ID on Windows

What is the best way to generate a unique hardware ID on Microsoft Windows with C++ that is not easily spoofable (with for example changing the MAC Address)?

like image 407
Patrick Glandien Avatar asked May 26 '09 13:05

Patrick Glandien


People also ask

How do I get hardware hash ID?

You can use a PowerShell script (Get-WindowsAutopilotInfo. ps1) to get a device's hardware hash and serial number. The serial number is useful for quickly seeing which device the hardware hash belongs to.

How do I find my hardware ID in CMD?

Type the following command to name, brand, model, and serial number information and press Enter: wmic diskdrive get model,serialNumber,index,mediaType > C:\PATH\TO\TEXT.

What is a hardware ID number?

A string that uniquely and consistently identifies a given specific machine or device. Typical Hardware IDs include computed fingerprints, MAC addresses, CPU serial numbers and hardware dongle identifiers. Software licenses are typically anchored to a specific Hardware ID.


1 Answers

Windows stores a unique Guid per machine in the registry at:

HKEY_LOCAL_MACHINE\Software\Microsoft\Cryptography\MachineGuid
like image 185
AgileJon Avatar answered Sep 22 '22 15:09

AgileJon