Search The Blog
About this site

@RoyOsherove

Subscribe!

This site aims to connect all the dots of my online activities - from tools, books blogs and twitter accounts, to upcoming conferences, engagements and user group talks.

from 5whys.com
Twitter: @RoyOsherove
My Book: The Art of Unit Testing
Latest Posts
« Hardcore XML blog | Main | The Regulator v. 2.01 - now with Intellisense »
Tuesday
Apr202004

[Tool] WMI Strongly Typed Class Generator 

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.

PrintView Printer Friendly Version

Reader Comments

There are no comments for this journal entry. To create a new comment, use the form below.

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Post:
 
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>