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 ...