Is there a way to get the following information by using C#?
- PC Name,
- Service Tag,
- CPU type,
- CPU speed,
- Size of the C:\ drive,
- Installed RAM,
- OS name,
- OS Product Key,
- Office Version, and Office Product Key.
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.
WMI is what you’re looking for.
http://www.codeproject.com/KB/cs/EverythingInWmi02.aspx
Let me add the link to Part 3 too, which concentrates on hardware via WMI
http://www.codeproject.com/KB/cs/EverythingInWmi03.aspx
MSDN is also a great resource for WMI scopes…
http://msdn.microsoft.com/en-us/library/aa394554(v=vs.85).aspx