Targeting Profiles Using Filters

Earn 25 points (50 with Pro) in two steps

  1. ① Read through the lesson — each section gets a ✓ as you scroll through it.
  2. ② When every section has a ✓, tap Complete lesson.

0 of 9 read · keep scrolling

✦ See fewer ads and earn double points — 50 a lesson instead of 25 — with Pro

Module: Manage and Maintain Devices

Section: Plan and Implement Device Configuration Profiles

Lesson Title: Targeting Profiles Using Filters


Introduction: The Evolution of Device Management

In the modern enterprise environment, managing devices is no longer a "one-size-fits-all" scenario. Gone are the days when every employee in an organization used the exact same hardware, operating system version, and software set. Today, we deal with a complex mix of corporate-owned devices, personal devices (BYOD), varying OS builds, and specialized hardware for different departments. As an IT administrator, your goal is to ensure that every device receives the correct configuration settings without creating a management nightmare of thousands of individual assignment groups.

Targeting profiles using filters is the solution to this complexity. Instead of relying solely on static groups—where you must manually add or remove devices as their properties change—filters allow you to define dynamic, rule-based criteria. A configuration profile is only applied to a device if that device meets the specific conditions defined in your filter. This approach moves management from a manual, administrative task to an automated, policy-driven process. By mastering filters, you reduce the risk of human error, ensure compliance across diverse hardware estates, and significantly simplify your device management lifecycle.


Not read yet

Understanding the Logic of Filters

At its core, a filter is a logical expression that evaluates the properties of a device or user against a set of rules you define. When you assign a configuration profile, you can choose to either "include" or "exclude" devices based on these filters. This gives you granular control over the final policy set.

For example, imagine you have a security policy that requires BitLocker encryption. You want this policy to apply to all Windows 10 and 11 laptops, but you want to exclude any devices that are currently running a test version of the operating system (Windows Insider builds). With static groups, you would have to constantly monitor which devices are in the testing ring and move them out of the production assignment group. With filters, you simply create a rule that says: "Apply to all devices where the Operating System is Windows 10 or 11, AND the OS build does not match the Insider preview string." The system handles the rest automatically.

Key Components of a Filter

To effectively build filters, you must understand the three primary components that make up every rule:

  1. Property: The specific attribute of the device you are evaluating. This could be the model, the OS version, the device manufacturer, or the ownership type (e.g., Corporate vs. Personal).
  2. Operator: The logical bridge between the property and the value. Common operators include "Equals," "Not Equals," "Contains," "Starts With," and "In."
  3. Value: The specific data point you are looking for. For instance, if your property is "Manufacturer," your value might be "Dell" or "Microsoft Corporation."

Callout: Filters vs. Assignment Groups Many administrators confuse filters with traditional Azure AD (or Entra ID) groups. It is important to distinguish between them. Groups are static or dynamic collections of objects that you manually target. Filters are sub-selectors that run on top of those groups. You assign a policy to a broad group (like "All Corporate Devices") and then use a filter to narrow that assignment down to specific models or OS versions. Filters are evaluated at the time the device checks in, making them much more responsive to environmental changes than dynamic group memberships, which can take time to update.


Not read yet

Practical Scenarios for Implementing Filters

To understand why filters are essential, we should look at common real-world scenarios where static grouping fails to provide the necessary precision.

Scenario 1: Excluding Specialized Hardware

You have a fleet of devices that includes both standard laptops and specialized tablets used for kiosk mode. You want to apply a specific desktop wallpaper and taskbar configuration to the laptops, but you do not want these settings applied to the tablets because they would interfere with the kiosk software.

Instead of creating an "Exclude" group in your directory, you create a filter based on the "Model" property. You set the filter to: deviceModel -notContains "Tablet". When you assign your configuration profile, you target the group containing all devices but apply the filter to exclude anything containing the word "Tablet."

Scenario 2: Managing OS Version Phasing

Your organization is transitioning from Windows 10 to Windows 11. You have a configuration profile that enables specific security features available only in Windows 11. You want to ensure that this policy does not get pushed to your remaining Windows 10 machines, as it might cause errors or unexpected behavior.

You can create a filter that targets only devices where the OS version starts with "10.0.226" (the prefix for Windows 11). By applying this filter, you ensure that as soon as a device upgrades to Windows 11, it automatically receives the new security policy, and Windows 10 devices remain untouched by the new settings.


Not read yet

Step-by-Step: Creating Your First Filter

Let’s walk through the process of creating a filter to target only "Dell" devices running "Windows 11."

  1. Navigate to the Endpoint Management Portal: Go to the "Devices" section and select "Filters."
  2. Create a New Filter: Click on "Create" and choose the platform (e.g., Windows 10 and later).
  3. Define the Rules:
    • Rule 1: Select "Manufacturer" as the property. Choose "Equals" as the operator. Type "Dell" as the value.
    • Logical Operator: Choose "AND" to combine the rules.
    • Rule 2: Select "OS Version" as the property. Choose "Starts with" as the operator. Enter "10.0.226" as the value.
  4. Review and Preview: Use the "Preview" feature to see which devices in your current environment would be caught by this filter. This is a critical step to ensure you aren't accidentally excluding or including unintended devices.
  5. Save and Assign: Once satisfied, save the filter. Go to your configuration profile, select "Assignments," and add the filter to the assignment row.

Note: The "Preview" feature is your best friend. Always use it before applying a filter to a production policy. It allows you to see exactly which devices will receive the policy based on the current state of your environment, preventing accidental misconfigurations that could lock users out of their devices.


Not read yet

Technical Deep Dive: The Filter Rule Syntax

When you build filters in the UI, the system translates your choices into a specific syntax. While you don't need to be a programmer to use the UI, understanding the underlying logic helps when troubleshooting complex scenarios.

Using the "In" and "Not In" Operators

The "In" operator is incredibly powerful when you need to match against multiple values. For example, if you want to target only specific models of laptops for a BIOS update policy, you don't need to create five separate rules. You can use: deviceModel -in {"Latitude 5420", "Latitude 5430", "Latitude 5440"}.

Logical Grouping

You can create complex rules using parentheses. If you have a policy that should apply to both "Dell" and "HP" devices, but only if they are "Corporate" owned, your logic would look like this: (manufacturer -eq "Dell" -or manufacturer -eq "HP") -and ownership -eq "Corporate".

This demonstrates the importance of order of operations. Without the parentheses, the logic might evaluate the "Corporate" condition incorrectly, potentially including personal devices from one of the manufacturers.


Not read yet

Best Practices for Filter Management

As your environment grows, your list of filters can become cluttered. Following these best practices will keep your management environment clean and efficient.

  • Naming Conventions: Use a consistent naming scheme. A good example is [Platform]_[Property]_[Action]. For example, Win_Model_ExcludeTablets or iOS_OSVersion_Include16Plus. This makes it immediately clear what the filter does without having to open the configuration.
  • Keep Rules Simple: While you can build incredibly complex nested filters, it is better to keep them simple. If a filter becomes too long or difficult to read, consider if you can achieve the same goal by creating two separate, simpler filters or utilizing different assignment groups.
  • Documentation: Maintain a simple spreadsheet or internal wiki page that lists your filters and the policies they are attached to. This is vital for troubleshooting, especially if multiple admins are managing the environment.
  • Periodic Audits: Every few months, review your list of filters. Delete any that are no longer in use. Filters that are not assigned to any profile should be removed to prevent confusion.

Warning: Be very careful when using "Exclude" filters. It is easy to create a logic loop where a device is excluded from a security policy that it needs to be compliant. If you exclude a device from a policy, ensure that there is a fallback policy or that the device is not left in a vulnerable state. Always test "Exclude" filters on a small, non-production group of devices first.


Not read yet

Common Pitfalls and Troubleshooting

Even with careful planning, things can go wrong. Here are the most common issues administrators encounter when working with filters.

1. The "Wait Time" Misconception

A common mistake is assuming that filters are applied in real-time the exact millisecond a property changes on a device. While filters are evaluated during the device check-in process, there is a natural latency between a device changing its state (like upgrading its OS) and the management system receiving that update, processing the filter, and pushing the new policy. Do not panic if a device doesn't receive a policy immediately after a change; wait for the next sync cycle.

2. Conflicting Filters

If you apply multiple filters to the same policy, you might create a conflict where no devices qualify. For example, if you have a filter that requires the device to be "Model A" and another that requires it to be "Model B," and you apply both to the same assignment, no device will ever match both. Filters are applied as an "AND" operation to the assignment; ensure your logic is not mutually exclusive.

3. Case Sensitivity

While many modern management platforms are becoming better at handling case sensitivity, it is best practice to assume that values are case-sensitive. "dell" and "Dell" may be treated as different values in some back-end systems. Always verify the exact string returned by the device properties before building your filter.

4. Property Availability

Not every property is available for every platform. For example, a property related to "Android Enterprise" will not be available when building a filter for "Windows 10." If you find a property is missing in the dropdown list, verify that you have selected the correct platform for your filter.


Not read yet

Comparison: Filters vs. Dynamic Groups

To solidify your understanding, let's look at a comparison table between the two primary methods of targeting devices.

Feature Dynamic Groups Filters
Evaluation Time Asynchronous (can take hours) Near real-time (at check-in)
Complexity High (requires group management) Low (built directly into policy)
Scope Broad (identifies the object) Narrow (refines the assignment)
Visibility Visible in Directory/Users Visible only in Policy/Endpoint
Best For Large, broad categorizations Specific configuration exclusions/inclusions

As the table shows, Dynamic Groups are excellent for broad organizational structures (e.g., "All Sales Staff"), while Filters are the precision tool needed for the actual configuration of the devices within those groups. Using them together is the industry standard for mature device management.


Advanced Logic: Using Regex and Pattern Matching

For advanced administrators, some platforms offer the ability to use "Regex" (Regular Expressions) in filters. This allows for extremely powerful pattern matching. For instance, if you have a naming convention for your devices where the first three letters indicate the location (e.g., NYC-L-001, LON-L-002), you can use a Regex filter to target all laptops in a specific city.

The pattern ^NYC-.* would target every device starting with "NYC-". This is significantly more efficient than creating a group for every single location. However, be cautious: Regex is notoriously difficult to debug. If you use it, ensure you have a robust testing process and that you thoroughly document the patterns being used.


Not read yet

Summary of Key Takeaways

  1. Filters are Dynamic, Not Static: Unlike groups, which require manual or background-process updates, filters evaluate device properties at the moment of check-in, providing a more accurate and responsive way to target policies.
  2. Use the Preview Function: Never deploy a filter without first using the "Preview" or "Test" feature. This allows you to see exactly which devices will be affected, preventing widespread configuration errors.
  3. Combine for Granularity: Use groups to define the broad audience (e.g., "All Employees") and use filters to refine that audience (e.g., "Exclude devices that are not encrypted").
  4. Adopt a Naming Convention: A clear, descriptive naming convention for your filters is essential for long-term maintainability and helps other administrators understand your logic at a glance.
  5. Watch the "Exclude" Logic: Be extremely cautious with exclusion filters. It is easy to accidentally exclude a device from a mandatory security policy, leaving it non-compliant and vulnerable.
  6. Understand Platform Limitations: Always check which properties are available for the specific OS you are targeting. A filter property that works for Windows may not exist or may behave differently on macOS or Android.
  7. Keep It Simple: While complex logic is possible, it is rarely necessary. If a filter becomes too difficult to read or debug, break it down into smaller, more manageable pieces.

By integrating these strategies into your daily workflow, you will move from being a reactive administrator who spends time fighting fires, to a proactive architect who manages by design. Targeting profiles using filters is the hallmark of a mature, efficient, and professional device management strategy. Remember that the goal is always to keep the environment secure while minimizing the friction for the end user; filters are your primary tool for achieving this balance.

Not read yet

Each section gets a ✓ as you scroll through it. Tap the button to jump to the next one.