10/3/2008
The following procedure shows you how you can use Windows Management Instrumentation (WMI) filtering to apply a Group Policy object to selected managed Windows Mobile powered devices in an organizational unit. A WMI filter is composed of one or more WMI queries. You can link a GPO to an existing or new WMI filter. The GPO policy settings will apply to a managed device if the WMI filter queries evaluate as true for that managed device.
The following example shows you the correct format for WMI queries. Notice that <expression> is any WMI Query Language expression.
“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.
Select * from WindowsMobileDevices where DeviceLanguage like “en-us”
For more information about WMI filtering, see the Group Policy Management Console Help.

To create a Windows Management Instrumentation filter
-
In the Group Policy Management Console, in the navigation pane, right-click WMI Filters, and then choose New.
-
In the New WMI Filters dialog box, type a name and description for the new filter.
-
Choose Add.
-
In the WMI Query dialog box, leave the default namespace, root\CIMv2, and then choose OK.
-
In the Query box, type the new WMI query and then choose OK.
-
To add more queries, repeat steps 3 through 6.
-
After you add all the queries, choose Save.

To link a Group Policy object to a Windows Management Instrumentation filter
-
In the console tree, expand Group Policy Objects, and then select the target GPO.
-
In the details pane, select the Scope tab and then locate the section titled WMI Filtering.
-
In the WMI Filtering list, select the WMI filter to which the GPO will be linked.
-
Choose Yes to confirm the selection.

See Also