Book a Demo

Author Topic: WMI Reverse Engineer?  (Read 4569 times)

jeremy.bunn

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
WMI Reverse Engineer?
« on: August 28, 2003, 08:51:40 am »
Does anyone know of a way to reverse engineer the WMI MOF files into EA?  If it could be automated and done once, it could be bundled with the product or made available for download.

Thanks!

Jeremy

SpoonsJTD

  • EA User
  • **
  • Posts: 39
  • Karma: +0/-0
    • View Profile
Re: WMI Reverse Engineer?
« Reply #1 on: September 03, 2003, 10:56:55 am »
Quote
Does anyone know of a way to reverse engineer the WMI MOF files into EA?  If it could be automated and done once, it could be bundled with the product or made available for download.


Jeremy,

Here is a partial solution for reverse engineering the WMI MOF.  The result of doing all of it would be huge, so this will suffice if you want to pick classes to reverse engineer.

This web page describes using a .NET tool to create a typed class for a WMI class:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cptools/html/cpgrfmanagementstronglytypedclassgeneratormgmtclassgenexe.asp

Run it on the class you want, then use EA's C# reverse engineering to create the model.  There are some gotchas with respect to name collisions, etc. but you should get a pretty good representation of the MOF class.  I tried this on Win32_OperatingSystem and it worked like a champ.

jeremy.bunn

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: WMI Reverse Engineer?
« Reply #2 on: September 03, 2003, 11:08:14 am »
Good idea, thanks!