jhbooth
Mon Jul 14 18:51:44 CDT 2008
Microsoft did the work for you.
WMI Code Creator v1.0
Brief Description
The WMI Code Creator tool allows you to generate VBScript, C#, and VB .NET code that uses WMI to complete a management task such as querying for management data, executing a method from a WMI class, or receiving event notifications using WMI.
http://tinyurl.com/2fx5fy
and look into System.Management