You can use WMI queries in a task sequence condition. WMI is the primary management technology for Windows operating systems and enables consistent and uniform management, control, and monitoring of systems throughout the enterprise. Based on industry standards, WMI allows you to query, change, and monitor configuration settings on desktop and server systems, applications, networks, and other enterprise components. You can also write scripts that use the WMI scripting library to work with WMI and create a wide range of systems management and monitoring scripts. For more information about WMI, see the WMI Scripting Primer.

To configure a condition based on a WMI condition, provide the following information in the Task Sequence WMI Condition dialog box:

·     WMI namespace. The default, \root\cimv2, refers to a specific WMI namespace. Namespaces are grouped hierarchically and are similar to the way folders are grouped in the operating system. Within each namespace is a collection of classes that correspond to a managed resource.

·     WQL query. This dialog box contains the query that runs when the conditions are met. WMI is generally queried in two ways: by retrieving an entire WMI object or by using a Structured Query Language (SQL)–like query. In the query, system information or querying computers could be accessed across a network.

To add a WMI query result condition to a task sequence step

1.   On the step Option tab (where step is the name of the task sequence step to configure), click Add, and then click Query WMI.

2.   In the Task Sequence WMI Condition dialog box, in the WMI namespace box, type WMI namespace.

3.   In the Task Sequence WMI Condition dialog box, in the WQL query box, type the query script to be run, and then click OK.

Related Topics

Configure Task Sequence Step Conditions