Windows Administrative Scripting Unleashed: Using VBScript, WMI, and ADSI to Automate Windows Administration
Understanding WMI Scripting (HP Technologies)
Leveraging WMI Scripting (HP Technologies)
Monad: Introducing the New MSH Command Shell and Language for Windows
Microsoft Windows PowerShell: TFM
Windows Powershell in Action
Professional Windows PowerShell

 

WMI Code Generator

Version 1.33

 

Use this HTA to generate Batch, JScript, KiXtart, Object Rexx, Perl, PowerShell, Python or VBScript code for menu selected WMI queries.
WMI Code Generator Screenshot
First select a class.
The "Properties" and "Methods" fields will show the names of the properties and methods available for the selected class.
 
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.

 

Change History

Version Release Date
(mm/dd/yyyy)
Changes
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.

 

Download WMI Code Generator 1.33:

 

Make a donation: