Skip to Content
Microsoft® Windows® Scripting with WMI: Self-Paced Learning Guide
book

Microsoft® Windows® Scripting with WMI: Self-Paced Learning Guide

by Ed Wilson
October 2005
Beginner to intermediate
400 pages
12h 42m
English
Microsoft Press
Content preview from Microsoft® Windows® Scripting with WMI: Self-Paced Learning Guide
266 Part IV: Classes
On Your Own
Lab 24 Working with Formatted Performance Classes
In this lab, you will work with the formatted performance counter classes to develop a script
that is used to monitor real-time data on a server. During the course of this lab, you will
develop a refresher template you can use whenever you need to refresh data in a script.
1. Open the WmiTemplate.vbs script, and save it as RefresherTemplate.vbs. This will be a
templa
te script you can use in the future when you need to refresh data.
2. In your newly named RefresherTemplate.vbs, turn off the On Error Resume Next line by
remarking it out.
3. Delete the Dim statement for the variable colItems.
4. You need three variables to work with the refresher. Place ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Microsoft® Windows® Scripting Self-Paced Learning Guide

Microsoft® Windows® Scripting Self-Paced Learning Guide

Ed Wilson

Publisher Resources

ISBN: 0735622310Catalog PageErrata