I’m looking for a way to get unique computer ID.
According to this post I can’t use processor ID for this purpose. Can I take motherboard ID? What is the best way to identify the computer?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Like you’ve said CPU Id wont be unique, however you can use it with another hardware identifier to create your own unique key.
Reference assembly
System.ManagementSo, use this code to get the CPU ID:
Then use this code to get the HD ID:
Then, you can just combine these two serials to get a uniqueId for that machine:
Obviously, the more hardware components you get the IDs of, the greater the uniqueness becomes. However, the chances of the same machine having an identical CPU serial and Hard disk serial are already slim to none.