This project is read-only.

WMI Tools for Generating managed code

Aug 22, 2007 at 2:38 AM
Your Form1.cs code has the following comment:

//There is a utility called mgmtclassgen that ships with the .NET SDK that
//will generate managed code for existing WMI classes. It also generates
// datetime conversion routines like this one.

In the meantime, you can likely use the managed code that is generated by the http://www.microsoft.com/downloads/details.aspx?FamilyID=2cc30a64-ea15-4661-8da4-55bbc145c30e&DisplayLang=en WMI Code Creator utility to get most of the stuff you're probably looking for. I've also found the http://www.microsoft.com/downloads/details.aspx?FamilyID=6430f853-1120-48db-8cc5-f2abdc3ed314&DisplayLang=en WMI Administrative Tools to be very helpful for exploring the WMI class structure and quickly seeing what kind of data they expose.

No offense intended if you already knew about these.

Aug 22, 2007 at 6:17 AM


MikeSL wrote:
Your Form1.cs code has the following comment:

//There is a utility called mgmtclassgen that ships with the .NET SDK that
//will generate managed code for existing WMI classes. It also generates
// datetime conversion routines like this one.

In the meantime, you can likely use the managed code that is generated by the http://www.microsoft.com/downloads/details.aspx?FamilyID=2cc30a64-ea15-4661-8da4-55bbc145c30e&DisplayLang=en WMI Code Creator utility to get most of the stuff you're probably looking for. I've also found the http://www.microsoft.com/downloads/details.aspx?FamilyID=6430f853-1120-48db-8cc5-f2abdc3ed314&DisplayLang=en WMI Administrative Tools to be very helpful for exploring the WMI class structure and quickly seeing what kind of data they expose.

No offense intended if you already knew about these.


No i did not know about them, but i will try to download, and "play" with them.
Thanks for comment :)