I need in my program to tie a license to a hardware ID. I tried use WMI, but it still slow.
I need, for example, CPU, HDD, and motherboard info.
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.
For more details refer to this link
The following code will give you CPU ID:
namespace required
System.ManagementFor Hard disk ID and motherboard id details refer this-link
To speed up this procedure, make sure you don’t use
SELECT *, but only select what you really need. UseSELECT *only during development when you try to find out what you need to use, because then the query will take much longer to complete.