April 2004
Beginner
416 pages
11h 3m
English
In this lab, you’ll work with passing arguments by modifying a script that uses WMI to list all the services associated with a particular process on the machine. This is in fact a very useful script. While we are at it, we will simplify the script a little to make it easier to read.
Open the servicesProcess.vbs script and save it as lab7.vbs.
Add the Option Explicit command at the top of the script.
Declare each variable used in the script. This would include the following:
Dim objIdDictionary Dim strComputer Dim objWMIService Dim colServices Dim objService Dim colProcessIDs Dim i
Save the script, and run it to ensure you have all the variables defined. If you missed a variable, Option ...