Targeting Profiles Using Filters
Earn 25 points (50 with Pro) in two steps
- ① Read through the lesson — each section gets a ✓ as you scroll through it.
- ② 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:
- 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).
- Operator: The logical bridge between the property and the value. Common operators include "Equals," "Not Equals," "Contains," "Starts With," and "In."
- 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."
- Navigate to the Endpoint Management Portal: Go to the "Devices" section and select "Filters."
- Create a New Filter: Click on "Create" and choose the platform (e.g., Windows 10 and later).
- 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.
- 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.
- 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_ExcludeTabletsoriOS_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
- 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.
- 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.
- 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").
- 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.
- 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.
- 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.
- 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.
- Choosing Device Join Types
- Choosing Device Join Types Quiz5q
- Joining Devices to Microsoft Entra ID
- Joining Devices to Microsoft Entra ID Quiz5q
- Registering Devices to Microsoft Entra ID
- Registering Devices to Microsoft Entra ID Quiz5q
- Planning Device Groups in Microsoft Entra ID
- Planning Device Groups in Microsoft Entra ID Quiz5q
- Implementing Dynamic Device Groups
- Implementing Dynamic Device Groups Quiz5q
- Configuring Enrollment Settings
- Configuring Enrollment Settings Quiz5q
- Configuring Automatic Enrollment for Windows
- Configuring Automatic Enrollment for Windows Quiz5q
- Configuring Bulk Enrollment for iOS and Android
- Configuring Bulk Enrollment for iOS and Android Quiz5q
- Configuring Android Enrollment Profiles
- Configuring Android Enrollment Profiles Quiz5q
- Configuring Android Enterprise Work Profiles
- Configuring Android Enterprise Work Profiles Quiz5q
- Managing Roles in Intune
- Managing Roles in Intune Quiz5q
- Implementing Compliance Policies
- Implementing Compliance Policies Quiz5q
- Implementing Conditional Access with Compliance
- Implementing Conditional Access with Compliance Quiz5q
- Configuring Windows Hello for Business
- Configuring Windows Hello for Business Quiz5q
- Implementing Windows LAPS
- Implementing Windows LAPS Quiz5q
- Managing Local Groups Membership
- Managing Local Groups Membership Quiz5q
- Choosing Between Autopilot and Provisioning Packages
- Choosing Between Autopilot and Provisioning Packages Quiz5q
- Choosing Windows Autopilot Deployment Modes
- Choosing Windows Autopilot Deployment Modes Quiz5q
- Applying Device Name Templates
- Applying Device Name Templates Quiz5q
- Implementing Windows Autopilot Deployment
- Implementing Windows Autopilot Deployment Quiz5q
- Creating Enrollment Status Pages
- Creating Enrollment Status Pages Quiz5q
- Implementing Provisioning Packages
- Implementing Provisioning Packages Quiz5q
- Planning Windows 11 Upgrades
- Planning Windows 11 Upgrades Quiz5q
- Implementing Windows 365 Cloud PC
- Implementing Windows 365 Cloud PC Quiz5q
- Configuring Autopilot Device Preparation
- Configuring Autopilot Device Preparation Quiz5q
- Creating Windows Device Configuration Profiles
- Creating Windows Device Configuration Profiles Quiz5q
- Importing ADMX Files
- Importing ADMX Files Quiz5q
- Creating Android Device Profiles
- Creating Android Device Profiles Quiz5q
- Creating iOS and iPadOS Device Profiles
- Creating iOS and iPadOS Device Profiles Quiz5q
- Creating macOS Device Profiles
- Creating macOS Device Profiles Quiz5q
- Targeting Profiles Using Filters
- Targeting Profiles Using Filters Quiz5q
- Creating Windows 11 Enterprise Multi-Session Profiles
- Creating Windows 11 Enterprise Multi-Session Profiles Quiz5q
- Configuring Endpoint Privilege Management
- Configuring Endpoint Privilege Management Quiz5q
- Using Enterprise App Catalog
- Using Enterprise App Catalog Quiz5q
- Implementing Advanced Analytics
- Implementing Advanced Analytics Quiz5q
- Configuring Remote Help
- Configuring Remote Help Quiz5q
- Implementing Microsoft Tunnel for MAM
- Implementing Microsoft Tunnel for MAM Quiz5q
- Understanding Microsoft Cloud PKI
- Understanding Microsoft Cloud PKI Quiz5q
- Syncing and Restarting Devices
- Syncing and Restarting Devices Quiz5q
- Retiring and Wiping Devices
- Retiring and Wiping Devices Quiz5q
- Performing Bulk Remote Actions
- Performing Bulk Remote Actions Quiz5q
- Rotating BitLocker Recovery Keys
- Rotating BitLocker Recovery Keys Quiz5q
- Running Device Queries with KQL
- Running Device Queries with KQL Quiz5q
- Updating Defender Antivirus Definitions
- Updating Defender Antivirus Definitions Quiz5q
- Preparing Applications for Deployment
- Preparing Applications for Deployment Quiz5q
- Deploying Apps Using Intune
- Deploying Apps Using Intune Quiz5q
- Deploying Microsoft 365 Apps
- Deploying Microsoft 365 Apps Quiz5q
- Configuring Policies for Office Apps
- Configuring Policies for Office Apps Quiz5q
- Using Office Deployment Tool with Autopilot
- Using Office Deployment Tool with Autopilot Quiz5q
- Managing Apps in Microsoft 365 Admin Center
- Managing Apps in Microsoft 365 Admin Center Quiz5q
- Deploying Apps from Platform App Stores
- Deploying Apps from Platform App Stores Quiz5q
- Managing Win32 App Dependencies
- Managing Win32 App Dependencies Quiz5q
- Planning App Protection Policies
- Planning App Protection Policies Quiz5q
- Implementing App Protection Policies
- Implementing App Protection Policies Quiz5q
- Implementing Conditional Access for Apps
- Implementing Conditional Access for Apps Quiz5q
- Planning App Configuration Policies
- Planning App Configuration Policies Quiz5q
- Implementing App Configuration Policies
- Implementing App Configuration Policies Quiz5q
- Configuring Selective Wipe for Apps
- Configuring Selective Wipe for Apps Quiz5q
- Creating Antivirus Policies
- Creating Antivirus Policies Quiz5q
- Creating Disk Encryption Policies
- Creating Disk Encryption Policies Quiz5q
- Creating Firewall Policies
- Creating Firewall Policies Quiz5q
- Configuring Attack Surface Reduction
- Configuring Attack Surface Reduction Quiz5q
- Implementing Security Baselines
- Implementing Security Baselines Quiz5q
- Integrating with Defender for Endpoint
- Integrating with Defender for Endpoint Quiz5q
- Onboarding Devices to Defender for Endpoint
- Onboarding Devices to Defender for Endpoint Quiz5q
- Configuring Endpoint Detection and Response
- Configuring Endpoint Detection and Response Quiz5q
- Planning Device Updates
- Planning Device Updates Quiz5q
- Creating Windows Update Rings
- Creating Windows Update Rings Quiz5q
- Managing iOS and macOS Updates
- Managing iOS and macOS Updates Quiz5q
- Managing Android Updates
- Managing Android Updates Quiz5q
- Configuring Delivery Optimization
- Configuring Delivery Optimization Quiz5q
- Monitoring Update Deployments
- Monitoring Update Deployments Quiz5q
- Creating Feature Update Policies
- Creating Feature Update Policies Quiz5q
- Managing Quality Update Expedites
- Managing Quality Update Expedites Quiz5q
- Using Windows Update for Business Reports
- Using Windows Update for Business Reports Quiz5q
Spend your points to unlock exam-style practice questions
Spend points to unlock MD-102 exam-style practice questions.
Practice for MD-102