Tip

Scriptomatic utility from Microsoft helps write WMI scripts

The Windows Management Instrumentation (WMI) lets you access a virtual treasure trove of system information and settings through scripts or programs. VBScript, Python, Perl and JScript all have methods to access WMI information, but the sheer number of methods – not to mention their cryptic nomenclatures -- can leave people baffled. It's a shame that something as powerful as WMI should be without tools to help people make the most of it.

A while back, engineers at Microsoft created a tool called Scriptomatic to make life easier for people who wanted to write WMI scripts. Despite its limitations, the tool gained quite a following. Now Microsoft has released a new version,

    Requires Free Membership to View

Scriptomatic 2.0, with even broader language support and new output options for the generated scripts.

The program itself runs as an HTML application (hence the .HTA extension on the file). Once it finishes loading, select a WMI namespace and class from the dropdowns in the lists at the top of the window, and then select a language and output format from the radio buttons on the right. The output format changes what the script itself produces -- output choices include command-prompt, plain-text, HTML, Excel and XML formats.

To change the name of the target computer for the script, specify one or more machine names in the box at the bottom, separated by commas. The resulting script can be saved as a file or simply copied and pasted into an editor somewhere else, and modified freely. The language for the script itself can be VBScript, Perl, JScript or Python; VBScript is the default, but that can be changed by editing the application's internal settings. (For how to do this, you'll need to see the documentation, which, I should mention, is extremely funny ... proving that just because something comes from Microsoft, it doesn't have to be devoid of humor.)

 


Serdar Yegulalp is editor of the Windows Power Users Newsletter. Check it out for the latest advice and musings on the world of Windows network administrators -- and please share your thoughts as well!

 


More information from SearchWinSystems.com


This was first published in December 2005

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.