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 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.
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 “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 Filtersdialog box, type a name and description for the new filter.
-
Choose Add.
-
In the WMI Querydialog box, leave the default namespace, root\CIMv2, and then choose OK.
-
In the Querybox, 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 Scopetab and then locate the section titled WMI Filtering.
-
In the WMI Filteringlist, select the WMI filter to which the GPO will be linked.
-
Choose Yesto confirm the selection.