Click here to Skip to main content
15,901,373 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I need to get way for gather hardware info included serial number for each part using c#. I used WMI Component but it didn't work in all machine specially to get serial number of computer parts and it is the most important thing for my audit IT program, after my search i found out development tools for that but it isn't free. Can any one help me?.
Posted

1 solution

Hi,

What about this article,

How To Get Hardware Information (CPU ID, MainBoard Info, Hard Disk Serial, System Information , ...)[^]

Hope it works for you,
Thanks
-Amit Gajjar
 
Share this answer
 
Comments
Sandeep Mewara 4-Sep-12 15:44pm    
Comment from OP:

thank you
but this article is using wmi component also which i use
the problem that it isn't working in all computer devices in my company
this way is working fine in my laptop and its os is windows7 home premium, however when i run my code on another computer with windows7 prof it isn't getting all serial number of parts, therefor i need another way or how to configure windows7 to use wmi component well.
AmitGajjar 5-Sep-12 0:12am    
Hi Sandeep, Some of the Hardware ID are unique And i think OP have similar problem. Although he has to specify what is the error message ? Or What's not working ?
Sandeep Mewara 5-Sep-12 0:30am    
That's OK. OP missed commenting on your answer, so I posted this on his behalf. Now, he must be aware of your answer to his comment. If he needs help, he will back. :)
AmitGajjar 5-Sep-12 0:47am    
Thanks sandeep for your valuable time. it's seems like OP is more busy then you, just kidding ;)
Mohamed Abutaleb 5-Sep-12 6:29am    
thanx all
the my problem is in some properties of win32 class return nullreferenceexception like in numerous properties like serial number or not all properties in win32 return values i don't know why ,and i don't know what is dependent on

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