Click here to Skip to main content
15,898,374 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
Hello
How can i get the machine GUID for code password?
Thanks
Posted

If you want to get the MachineGUID created by windows on installation you can read it direct from the registry here:



HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\MachineGuid



If you need to uniquely identify machines you will soon find that this GUID
is not actually universally unique and you will get duplicates. To get around this you can create and store your own. I ran into the same problem and wrote an article which covers the solution I found in detail :



http://www.eigo.co.uk/Machine-Universally-Unique-Identifier.aspx



Hope this helps :)
 
Share this answer
 
v2
Your question is not clear, if you mean a fixed GUID then what exactly are you asking? If you mean a random GUID then you can use the guidgen program that ships with the Windows SDK from Microsoft. It may also help to try and explain what it is you want to achieve.
 
Share this answer
 
There is no such thing.

You can try using the Windows serial number, or the serials of bits of hardware in the machine, but ultimately you're just going to annoy your legitimate users without stopping the pirates.

Issue license keys like everyone else and accept that if your product is popular there is nothing you can do to thwart determined thieves.

Nick
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900