You can use WMI filtering to specify the devices in an organizational unit (OU) to which a Group Policy object (GPO) should be applied. A WMI filter is composed of one or more WMI queries. When you link a GPO to a new or existing WMI filter, the GPO's policy settings will be applied only to those devices in the organizational unit for which the WMI queries evaluate to True.

The following example shows you the correct format for WMI queries. Notice that <expression>is any WMI Query Language expression.

Copy Code
“Select * from WindowsMobileDevices where <expression>”.

In the following example, the policy settings associated with a GPO that links to the query will apply to managed devices where the device language is U.S. English.

Copy Code
Select * from WindowsMobileDevices where DeviceLanguage like

For more information about WMI filtering, see the Group Policy Management Console Help.

To create a Windows Management Instrumentation filter

  1. In the Group Policy Management Console, in the navigation pane, right-click WMI Filters, and then choose New.

  2. In the New WMI Filtersdialog box, type a name and description for the new filter.

  3. Choose Add.

  4. In the WMI Querydialog box, leave the default namespace, root\CIMv2.

  5. In the Querybox, type the new WMI query and then choose OK.

  6. To add more queries, repeat steps 3 through 6.

  7. After you add all the queries, choose Save.

To link a Group Policy object to a Windows Management Instrumentation filter

  1. In the console tree, expand Group Policy Objects, and then select the target GPO.

  2. In the details pane, select the Scopetab and then locate the section titled WMI Filtering.

  3. In the WMI Filteringlist, select the WMI filter to which the GPO will be linked.

  4. Choose Yesto confirm the selection.

See Also