[Tool] WMI Strongly Typed Class Generator

By Roy Osherove In .Net Quotations, Cool Tools

Markdown version

Historical article · Originally published April 20, 2004; technical details may be outdated.

WMI rocks, but it's common to be afraid of it. Yosi points to a very cool tool that will help overcome this fear and make working with WMI a little easier: Microsoft (R) Management Strongly Typed Class Generator - MgmtClassGen.exe
 

Example :
        MgmtclassGen Win32_Logicaldisk /L VB /N root\cimv2 /P c:\temp\logicaldisk.vb

You can find it under you sdk bin directory, so instead of figuring out the properties of the objects you get a strongly type object to work with.

More in .Net Quotations

All posts in .Net Quotations