April 2004
Beginner
416 pages
11h 3m
English
In this lab, you modify the script from Lab 16 so that it echoes out the time zone configured on the computer.
Open Notepad.exe.
Open Lab16Solution.vbs, and save it as lab17.vbs.
Edit the wmiQuery so that it points to Win32_TimeZone. The code will look like the following:
wmiQuery = "Select * from Win32_TimeZone"
Inside the For Each objItem In colItems loop, delete all but one of the WScript.Echo statements so that the code looks like the following:
For Each objItem In colItems
WScript.Echo "Caption: " & objItem.Caption
NextSave and run the file. You are now pointing to the Caption field of Win32_TimeZone. No further changes are required for this lab.