Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get pc (system) information on windows machine

Tags:

Is there a way to get the following information by using c# script.

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.

Thanks.

like image 666
dps123 Avatar asked Jan 20 '11 00:01

dps123


People also ask

How do I find my computer information using CMD?

Enter cmd and press Enter to open the Command Prompt window. Type the command line systeminfo and press Enter. Your computer will show you all the specs for your system — just scroll through the results to find what you need.

How do I get my computer information on my desktop?

The fastest way to display the System Information screen on virtually any Windows PC is to press the Windows+Pause key combination (hold down the Windows key and then press the Pause key). Note: The Windows key is typically found in the lower left-hand corner of the keyboard.


1 Answers

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

like image 198
dotalchemy Avatar answered Oct 13 '22 00:10

dotalchemy