---
title: "[Tool] WMI Strongly Typed Class Generator"
url: "https://osherove.com/blog/2004/4/20/tool-wmi-strongly-typed-class-generator.md"
canonical: "https://osherove.com/blog/2004/4/20/tool-wmi-strongly-typed-class-generator.html"
published: "2004-04-20T18:36:00"
updated: "2004-04-20T18:36:00"
tags: [".Net Quotations", "Cool Tools"]
author: "Roy Osherove"
description: "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 -…"
usage: "Licensed under CC BY 4.0 — reuse, quote and adapt with attribution (Roy Osherove, link to the original page)."
license: "https://creativecommons.org/licenses/by/4.0/"
---

# \[Tool\] WMI Strongly Typed Class Generator

By Roy Osherove April 20, 2004 In [.Net Quotations](https://osherove.com/blog/category/net-quotations), [Cool Tools](https://osherove.com/blog/category/cool-tools)

**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](http://blogs.msdn.com/yosit/archive/2004/04/19/116043.aspx)

_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](https://osherove.com/blog/category/net-quotations)

- Apr 24, 2004

    ### [Good article about ReaderWriterLock and Multi Threading](https://osherove.com/blog/2004/4/24/good-article-about-readerwriterlock-and-multi-threading.html)

- Apr 22, 2004

    ### [Some cool stuff coming in ADO.NET 2.0](https://osherove.com/blog/2004/4/22/some-cool-stuff-coming-in-adonet-20.html)

- Apr 15, 2004

    ### [New version of Data Access Application Block available](https://osherove.com/blog/2004/4/15/new-version-of-data-access-application-block-available.html)

- Apr 14, 2004

    ### [Code Readability and double negation - not uninteresting!](https://osherove.com/blog/2004/4/14/code-readability-and-double-negation-not-uninteresting.html)


---

## About the author

**Roy Osherove**: Senior Solutions Architect at AWS working on AI for production and AI-driven development; author of The Art of Unit Testing and Elastic Leadership, with about 20 years of consulting and training on unit testing, TDD, team leadership and continuous delivery.

### Sites

- [RobotPaper](https://robotpaper.ai/): This blog: AI patterns and anti-patterns, AI and coding agents, and engineering leadership.
- [osherove.com](https://osherove.com): Roy's personal site. Author of The Art of Unit Testing and Elastic Leadership; consulting and training on unit testing, TDD, team leadership and continuous delivery, plus about 20 years of blog posts.
- [The Art of Unit Testing](https://www.artofunittesting.com): The Art of Unit Testing, 3rd Edition (Manning): readable, maintainable, trustworthy unit tests, plus TDD workshops in C#, JavaScript, Java and Kotlin.
- [5whys.com](https://www.5whys.com): Roy's writing on software team leadership: self-organizing teams, surviving chaos, learning mode and the Elastic Leadership model.
- [Pipeline Driven](https://pipelinedriven.org): Continuous delivery and DevOps practices: build patterns, pipeline-friendly testing, DevOps metrics and enterprise DevOps.
- [Elastic Leadership](https://www.elasticleadership.com): Elastic Leadership, Roy's framework for software team leaders (survival, learning and self-organizing modes).

### Social

- X: https://x.com/royosherove
- LinkedIn: https://www.linkedin.com/in/osherove/

### Contact

- Contact form: https://forms.gle/jQSx5KoXvrVA1JCK7

### License

Licensed under CC BY 4.0 — reuse, quote and adapt with attribution (Roy Osherove, link to the original page). License: https://creativecommons.org/licenses/by/4.0/
