| Use this HTA to generate Batch, JScript, KiXtart, Object Rexx, Perl, PowerShell, Python or VBScript code for menu selected WMI queries. |
![]() |
| First select a class. The "Properties" and "Methods" fields will show the names of the properties and methods available for the selected class. To get detailed information on a class or a method or property, select that class and method/property, and click the "Help" button. This will open an Internet Explorer window with the relevant MSDN page, or if that page doesn't exist, a list of Google Search results. Next click one of the "Create ... Code" buttons to generate the code that will display all properties of the selected class, and their values, in the scripting language of your choice. Then copy the code to the clipboard, and paste it into your favorite scripting editor. After some optional "pruning", save your own custom WMI script. |
| Version | Release Date (mm/dd/yyyy) |
Changes |
|---|---|---|
| 2.02 | 01/25/2010 | Added doublequotes for the "node" name in the generated batch code, to prevent error messages if the computer name contains dahes (problem discovered and solved by David Chisholm). |
| 2.01 | 07/20/2008 | Corrected the URL to WMIGen.hta in the generated code. Added alternating background colors in the dropdown list boxes. |
| 2.00 | 07/16/2008 | Added a "Help" button, which searches MSDN for a relevant reference
page for the selected Class, Method or Property.
To write the help function,
this
article from Search Engine Roundtable proved invaluable. The properties and methods are no longer listed in HTML text areas, but in dropdown lists. |
| 1.33 | 10/20/2006 | Added BREAK ON statement in generated KiXtart code,
to close all running processes when Ctrl+Break is pressed. Thanks for Senser for this tip. |
| 1.32 | 10/16/2006 | Added /ALL command line switch to display not only Win32_* classes, but all classes. |
| 1.31 | 09/11/2006 | Corrected an error in the generated JScript code. |
| 1.30 | 09/08/2006 | Now also generates Batch, Object Rexx, Perl and Python code. Added the script language name in the comment lines of the generated code. |
| 1.21 | 09/05/2006 | Generated KiXtart and PowerShell script now support command line specified remote computer name. |
| 1.20 | 09/05/2006 | Besides PowerShell and VBScript, now also generates JScript and
KiXtart code. Added an empty line in the generated scripts, to distinguish between object instances. Added a "Clear Code" button. |
| 1.14 | 08/30/2006 | Minor update: improved update/version check. |
| 1.13 | 08/21/2006 | Improved update/version check. Added comments to the generated scripts. |
| 1.12 | 08/18/2006 | Improved window layout for low resolution displays. Text areas are now resized when main window is resized. Dynamic tool tip for "Copy Code" button. |
| 1.11 | 08/16/2006 | Added tool tips. |
| 1.10 | 08/15/2006 | Added automatic update check & notification. Added background gradient. |
| 1.00 | 08/14/2006 | Initial version. |
| unique visitors since July 2007 | page last uploaded: 25 January 2010, 19:22 |