62 Part II: WMI Queries and Events
Where Is the Where Clause?
Modifying the Select statement is useful in limiting the data that is returned; similarly, you can
also modify the Where clause. The Where clause is an optional part of the WMI query. It, too,
can be very useful in reducing the amount of information that comes back from a WMI query.
You can modify a Where clause in many ways, including the following:
■ Filter on a property value by using a comparison operator
■ Filter on a property if it is NULL
■ Filter on a property if it is not NULL
■ Filter on a property by making a compound comparison
Select Everything from Some Things
The first script in this section reverts back to the “select everything” type of statement. How-
ever ...