I am creating a Java Desktop Application that is to report the Performance & Statistics of the Windows Machine (XP, Vista and W7).
Using Java or the Command Line how do I get the following information:
- Manufacturer (Dell, HP...)
- Modal Number
- Processor Type
- Processor Size
- System Type
- Storage Space
- RAM Total
- RAM Free or Used
And a reference page for this would be great, in case I find more information I want to list.
Most of this should be queryable with WMI (which is what
systeminfo
very likely uses under the hood anyway – it just tends to gather all there is instead of specific information).I hacked together the following small batch file. Not quite sure what you mean with Processor Size – no software will go into the computer case and measure the die dimensions, but maybe this comes close. You can do a
set
at the end of the batch file to view all created environment variables. Maybe some of them help:Side note: This is free from locale-specifics, so it should work everywhere (as opposed to things like
dir | find "free"
for example). Code can be found in my SVN repository.Would psinfo from sysinternals do what you want? You can run it from your server to query each PC. http://technet.microsoft.com/en-us/sysinternals/bb897550
Manufacturer
Model Number
Processor Type
Processor Size
System Type
Storage Space
OR
RAM Total
RAM Free or Used