Skip to Content
Microsoft® Windows® Scripting with WMI: Self-Paced Learning Guide
book

Microsoft® Windows® Scripting with WMI: Self-Paced Learning Guide

by Ed Wilson
October 2005
Beginner to intermediate
400 pages
12h 42m
English
Microsoft Press
Content preview from Microsoft® Windows® Scripting with WMI: Self-Paced Learning Guide
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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Microsoft® Windows® Scripting Self-Paced Learning Guide

Microsoft® Windows® Scripting Self-Paced Learning Guide

Ed Wilson

Publisher Resources

ISBN: 0735622310Catalog PageErrata