Click to See Complete Forum and Search --> : System information using WMI


sauparna
February 20th, 2008, 01:15 AM
I want to retrieve detailed system information programatically and send it over the network to a web server.

The Windows API has a set of functions to retrieve the info (MSDN -> Win32 and COM Development -> System Services -> Windows System Information). I also understand WMI may be used. From the little of what I saw of WMI, using it would be a cleaner and consistent way of getting system information, and, might even be easy to communicate this info over the network.

Could some one suggest which way I should go? Does the Windows System Information tool use WMI? Can I assume an average home user to have WMI running on his system by default.

PeejAvery
February 20th, 2008, 07:42 AM
WMI is a service since Windows 2000. That being said, it can be disabled, but that is usually very seldom.

WMI queries are very similar to SQL queries. I would start by looking at this (http://www.microsoft.com/technet/scriptcenter/guide/sas_wmi_jehv.mspx?mfr=true).

dglienna
February 21st, 2008, 01:11 AM
Look at ScriptoMatic for a tool to write the scripts