77Chapter 3: Using Basic WMI Queries
On Your Own
Lab 7 Exploring Win32_NTDomain
In this lab, you will explore the Win32_NTDomain class. This is a new class for Windows XP
and Windows Server 2003. Although this script can run on a workgroup computer running
Windows XP, the most interesting information will be obtained when your workstation has
access to the Microsoft Active Directory directory service. This script will not run on a com-
puter running Microsoft Windows 2000 and earlier.
1. Open the WMI template script, and sa
ve it as StudentLab7.vbs. Notice that the full name
of the WMI class is not listed.
2. Modify the
wmiQuery line so that you are making a query into the Win32_NTDomain
class. The modified line looks like the following ...