Device targeting allows you to execute policies on a filtered collection of devices. All policy types and worklets can be configured to use device filtering.
Creating a Device Filter on a Policy
You can apply filters on new and existing policies or worklets to target devices. It is possible to add up to 10 filters per policy and 10 values per attribute. For details about creating a policy or worklet, see Managing Policies.
From the Create or Edit Policy page, use the toggle to turn on Device Targeting.
From the Select Attribute drop-down menu, select the filter you want to use. You can filter by:
- Device Tag
- IP Address
- OS Version
- Active Directory Organizational Unit (Windows only)
Select from the options available in the Select Condition field. The options available depend on the filter selected.
Use the Select Option menu to enter the options related to the filter. You can select a maximum of 10 options.
Click Preview Impacted Devices to retrieve a list of all devices that will be included in the policy.
If you are creating a new policy or worklet, you must set a schedule and configure user notifications. Click Create Policy.
If you are editing a policy or worklet, click Save Policy.
Filters and their values
You can create up to 10 filters and apply up to 10 options per filter. Each filter row uses an "And" operation. These narrow down the results to fit all filters. The values set within the Options field use an "Or" operation.
A single filter (row) with multiple values will target any device with option 1 or option 2, or both.
The impacted devices include at least one of the options. Therefore, in this example, the tags "east" and "accounts" include other values and all devices with these tags are impacted.
Separate filters (rows) are an "And" condition. In this example, both "east" and "accounts" are valid, however, "south" is not included.
The impacted devices now reflect the conditions required for all filters.
Other filter examples
The result of this will show all devices that have a Hostname with the value "desktop":
Device Targeting Based on OU Information
You can use the device targeting filter Active Directory Organizational Unit (AD OU) to run policies based on Organizational Units. This allows you to filter devices based on your AD structure.
The AD OU information is collected when a device is scanned. Therefore, the policy automatically applies to newly added devices.
The AD OU filter allows you to match a string or strings. Example:
You can target a higher-level OU by using a partial match on the path.
- The Active Directory OU filter is available only for Windows devices
- The maximum string length is 2048 characters
- You can copy/paste the path structure into the Option field
- This feature requires no direct Active Directory Domain Controller access as we’re pulling the AD OU information directly from each device.
- Azure AD OU information requires a hybrid AD and Azure AD setup
Follow these steps to set up device filtering based on Organizational Units (OU).
Note: Automox queries Active Directory OU information every time a device is scanned (when adding a device or at least every 24 hours - depending on your scan interval).
- From the Create or Edit Policy page, use the toggle to turn on Device Targeting and activate the feature toggle.
- From the Select Attribute field, click Active Directory Organizational Unit.
- Use the Select Condition field to select from the following operators: Like Any, Not Like Any, In, Not In.
- In the Add Option field, enter or paste one or more path structures.
- Click Preview Impacted Devices to review the devices affected by the policy.
- Click Create Policy or Save Policy. The policy will run according to the schedule.
Targeting specific OUs
To target a specific OU, use the In condition. This filter requires full paths to the OU. Any sub-OUs are not included.
Viewing and Searching for Policies with Device Targeting
You can see if the device filter is configured for the policy from the Policies page.
Use the search field to find the new or updated policy to ensure that device targeting filters are switched on.
You can also sort the list of policies by the Has Device Targeting column.
Deleting a Device Filter
To delete an existing device filter in a policy or worklet, go to Device Targeting on the Edit page.
Click the delete button to remove the device filter.
Click Save Policy.