WMI Code Generator

Version 5.00

 

100% CLEAN award granted by Softpedia

 

Use this HTA to generate Batch, C#, JScript, KiXtart, Object Rexx, Perl, PowerShell, Python, Ruby, VB .NET 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.

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.

Select a scripting or programming language from the drop-down list and click the "Generate Code" button to generate the code that will display all properties of the selected class, and their values, in the scripting or programming language of your choice.

To test the selected query on your own computer, click the "Run WMI Code" button and wait for the result to appear on screen. Click "Generate Code" once more to redisplay the code in the selected scripting language.

Then copy the code (or result) to the clipboard, and paste it into your favorite scripting editor.

After some optional "pruning", save your own custom WMI script or program code.

 

Change History

Version Release Date
(mm/dd/yyyy)
Changes
5.00 06/30/2010 Added C# (assisted by my son Bas) and VB .NET to the list of supported languages.
4.10 06/28/2010 Added Ruby to the list of supported scripting languages.
4.01 06/28/2010 Corrected the URLs to my own site.
4.00 06/28/2010 Added a "Run WMI Code" button to test the selected WMI query.
3.00 06/27/2010 Replaced "Create ... Code" buttons by a drop-down list.
Optimized screen layout for large and small screens.
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.

 

Download WMI Code Generator 5.00:

 

Checksums:
File name:
MD5:
SHA1:
 
wmigen.zip
40c75f3b4359cae68cb693ad6b8223dd
87b677957494f4486c359ce827885b1f0db1d760

 

Make a donation:
QR Code for http://www.robvanderwoude.com/wmigen.php

visitors must be on to something...

page last uploaded: 30 June 2010, 17:49