Skip to content
How to Manage Windows OS Version-Based Device Groups in Intune using Entra ID Dynamic Membership

How to Manage Windows OS Version-Based Device Groups in Intune using Entra ID Dynamic Membership

Written By Anoop C Nair
Last Updated February 2, 2026
Posted In Intune
SHARE

Key Takeaways

  • Entra ID Dynamic Membership rules automatically add devices to groups based on defined conditions.
  • The deviceOSVersion property is used to identify devices by their Windows OS build number.
  • Using the Starts With operator allows targeting a specific Windows version range (for example, 10.0.26100).
  • The rule syntax is auto-generated by Entra ID, reducing errors and simplifying configuration.
  • Devices matching the specified OS version are added to the group automatically.
  • This approach makes it easier to assign Intune policies, apps, and compliance settings to specific Windows OS versions.

How to Create and Pause Entra ID Dynamic Groups for Device Management in Intune. Using a dynamic membership rule based on the Windows OS version provides better control and automation in Microsoft Intune. Devices are added or removed from the group automatically as their OS version changes, ensuring that policies and apps are always targeted accurately. This approach reduces manual effort, helps avoid configuration mistakes, and makes it easier to test, troubleshoot, or roll out settings for specific Windows builds.

Table of Content

How to Create and Pause Entra ID Dynamic Groups for Device Management in Intune

You can easily create and pause Entra ID dynamic groups for device management in Microsoft Intune. First, sign in to the Intune admin center and navigate to Groups > All groups > New group. The below window helps you to show more details.

How to Create and Pause Entra ID Dynamic Groups for Device Management in Intune - Fig.1
How to Manage Windows OS Version–Based Device Groups in Intune Using Entra ID Dynamic Membership – Fig.1

Create a Dynamic Device Security Group for Windows 11 24H2

In the New Group window, select Security as the group type and enter the group name as Windows 11 24H2 Device Group. Provide a clear description such as HTMD Windows 11 24H2 Device Group to identify the purpose of the group. Next, choose Dynamic device as the membership type so that devices running the specified Windows version are added automatically based on the configured dynamic membership rule.

How to Manage Windows OS Version-Based Device Groups in Intune using Entra ID Dynamic Membership - Fig.2
How to Manage Windows OS Version-Based Device Groups in Intune using Entra ID Dynamic Membership – Fig.2

Configure the Dynamic Device Membership Rule

At the end of the New Group window, you will see the Dynamic device members section. Under this setting, an Edit dynamic query hyperlink is available. Click this link to define and add the dynamic membership rule that determines which devices are automatically included in the group based on the specified criteria.

Patch My PC
How to Manage Windows OS Version-Based Device Groups in Intune using Entra ID Dynamic Membership - Fig.3
How to Manage Windows OS Version-Based Device Groups in Intune using Entra ID Dynamic Membership – Fig.3

Configure the Dynamic Membership Rule

In the Configure Rules window, set the Property to deviceOSVersion, select Starts With as the operator, and enter 10.0.26100 as the value. Based on these selections, Entra ID automatically generates the rule syntax as
(device.deviceOSVersion -startsWith “10.0.26100”). This rule ensures that all devices running a Windows OS version starting with this build number are automatically added to the dynamic group.

Dynamic Membership RulesDetails
PropertydeviceOSVersion
OperatorStarts With
Value10.0.26100
How to Manage Windows OS Version-Based Device Groups in Intune using Entra ID Dynamic Membership – Table 1
How to Manage Windows OS Version-Based Device Groups in Intune using Entra ID Dynamic Membership - Fig.4
How to Manage Windows OS Version-Based Device Groups in Intune using Entra ID Dynamic Membership – Fig.4

Pause Entra ID Dynamic Group Updates

Pausing an Entra ID Dynamic Group update allows administrators to temporarily stop automatic membership changes without deleting the group or its rules. This is useful when testing new dynamic queries, troubleshooting issues, or preventing unintended device additions or removals. While the update is paused, the existing group members remain unchanged.

How to Manage Windows OS Version-Based Device Groups in Intune using Entra ID Dynamic Membership - Fig.5
How to Manage Windows OS Version-Based Device Groups in Intune using Entra ID Dynamic Membership – Fig.5

How to Create Entra ID Dynamic Groups for Windows Device in Intune

You can easily create an Entra ID dynamic group for Windows devices in Microsoft Intune. Start by selecting Security as the group type, then provide the group name as Windows Devices and add a description such as Add all Windows devices in your Intune environment into a single group. Next, select Dynamic device as the membership type. Finally, click the Add dynamic query hyperlink to define the rule that automatically includes all Windows devices in the group.

How to Manage Windows OS Version-Based Device Groups in Intune using Entra ID Dynamic Membership - Fig.6
How to Manage Windows OS Version-Based Device Groups in Intune using Entra ID Dynamic Membership – Fig.6

Create an Entra ID Dynamic Group for iPhone and iPad Devices

You can easily create an Entra ID Dynamic Group for Windows devices by adding a dynamic membership rule. Set the Property to deviceOSType, choose Equals as the operator, and enter Windows as the value. Based on these selections, Entra ID automatically generates the rule syntax as (device.deviceOSType -eq “Windows”). This rule ensures that all Windows devices are automatically added to the group, making it easier to manage and target them with Microsoft Intune policies and apps.

How to Manage Windows OS Version-Based Device Groups in Intune using Entra ID Dynamic Membership - Fig.7
How to Manage Windows OS Version-Based Device Groups in Intune using Entra ID Dynamic Membership – Fig.7

Create an Entra ID Dynamic Group for iPhone and iPad Devices

You can easily create an Entra ID dynamic group for iPhone and iPad devices in Microsoft Intune. Start by selecting Security as the group type, then enter the group name as iPhone and iPad Devices and add a description such as Grouping iOS devices in Microsoft Intune. Next, choose Dynamic device as the membership type. Finally, select the Add dynamic query hyperlink to define the rule that automatically includes iPhone and iPad devices in the group.

How to Manage Windows OS Version-Based Device Groups in Intune using Entra ID Dynamic Membership - Fig.8
How to Manage Windows OS Version-Based Device Groups in Intune using Entra ID Dynamic Membership – Fig.8

Create an Entra ID Dynamic Group Rule for iPhone and iPad Devices

You can easily create an Entra ID Dynamic Group for iPhone and iPad devices by adding a dynamic membership rule. Set the Property to deviceOSType, choose Equals as the operator, and use iPhone and iPad as the values. Based on these selections, Entra ID automatically generates the rule syntax as (device.deviceOSType -eq “iPhone”) or (device.deviceOSType -eq “iPad”). This rule ensures that all iPhone and iPad devices are automatically added to the group, making it easier to manage and target iOS devices with Microsoft Intune policies and apps.

How to Manage Windows OS Version-Based Device Groups in Intune using Entra ID Dynamic Membership - Fig.9
How to Manage Windows OS Version-Based Device Groups in Intune using Entra ID Dynamic Membership – Fig.9

Create an Entra ID Dynamic Group for Android Devices

You can easily create an Entra ID dynamic group for Android devices in Microsoft Intune. Start by selecting Security as the group type, then enter the group name as Android Devices and add a description such as Group all Android devices in Intune. Next, select Dynamic device as the membership type. Finally, click the Add dynamic query hyperlink to define the rule that automatically includes all Android devices in the group.

How to Manage Windows OS Version-Based Device Groups in Intune using Entra ID Dynamic Membership - Fig.10
How to Manage Windows OS Version-Based Device Groups in Intune using Entra ID Dynamic Membership – Fig.10

Create an Entra ID Dynamic Group Rule forAndroid Devices

You can create an Entra ID Dynamic Group rule for Android devices by configuring a dynamic membership query based on the device operating system type. Set the Property to deviceOSType, choose Equals as the operator, and enter Android as the value. Entra ID automatically generates the rule syntax as (device.deviceOSType -eq “Android”), ensuring that all Android devices are automatically added to the group.

How to Manage Windows OS Version-Based Device Groups in Intune using Entra ID Dynamic Membership - Fig.11
How to Manage Windows OS Version-Based Device Groups in Intune using Entra ID Dynamic Membership – Fig.11

Need Further Assistance or Have Technical Questions?

Join the LinkedIn Page and Telegram group to get the latest step-by-step guides and news updates. Join our Meetup Page to participate in User group meetings. Also, join the WhatsApp Community  and the Whatsapp channel to get the latest news on Microsoft Technologies. We are there on Reddit as well.

Author

Anoop C Nair has been Microsoft MVP for 10 consecutive years from 2015 onwards. He is a Workplace Solution Architect with more than 22+ years of experience in Workplace technologies. He is a Blogger, Speaker, and Local User Group Community leader. His primary focus is on Device Management technologies like SCCM and Intune. He writes about technologies like Intune, SCCM, Windows, Cloud PC, Windows, Entra, Microsoft Security, Career, etc.

Written by

Anoop C Nair is Workplace Technology solution architect with 25+ years of experience in global enterprise organizations such as JP Morgan, Capgemini, etc. Microsoft Certified Trainer. Microsoft MVP from 2015 onwards for consecutive 11+ years! He also conducts Intune and modern workplace tech training for enterprise organizations. He is Blogger, Speaker, and Founder of HTMD Community and HTMD Conference. His main focus is on Device Management technologies like Intune, Windows, Cloud PC. He writes about technologies like Intune, SCCM, Windows, Cloud PC, Windows, Entra, Microsoft Security.

Discussion · 16 comments

  1. Anoop -this post is really helpful, thanks very much for taking the time to write it up.

    I wondered however if you could let me know how you found that you should use ‘deviceOSType’ – when I created dynamic groups for users it it is easy to get a list of attributes…not sure how to do the same for devices.

    Many thanks!

    Carl

  2. Awesome thanks – I managed to create a dynamic group that contained devices whilst waiting for your update, from this group I could get an object in this group and | fl to get full details. I will read your post now also as Graph is another area of interest to me.

    Thanks again

  3. I tired this for iOS devices. Initially, the device show up in the group, but then disappear. Any ideas?

      1. Not sure if this is helpful, but I created a dynamic device security group for AutoPilot with the advanced rule below:

        (device.devicePhysicalIDs -any _ -contains “[ZTDId]”)

        This will automatically add any device you enroll into AutoPilot this dynamic group.

  4. Hi Anoop,
    Any way we can create AAD Device groups based on AD OU, Programs Installed, basically like more granular queries like we can with SCCM collections?

    Thanks

  5. Is there any option to create a user Group based on the Device Type they are using? For e.g. create a user group for all MacOS users.

    1. StaffI think you are trying to replicate the sccm collection logic to azure ad dynamic groups. If so, I don’t think that is possible …. you might need to use requirements rules or custom script for that … I suppose

  6. Would you know of a way to create a dynamic device group based on the primary user for the device? I’m trying to create one that includes devices with a specific group tag and primary users whose userprincipalname doesn’t include a certain string.

  7. Is there any option to create a dynamic user Group based on the OS Version they are using? For e.g. create a dynamic user group for all Win 11 devices.

Join the discussion

Your email address will not be published. Required fields are marked *

Related guides

Intune

Simplify Windows Devices to Run Only the Required Applications using Intune

Key Takeaways Hey, let’s learn about Simplify Windows Devices to Run Only the Required Applications using Intune. This policy lets administrators replace the default windows shell with a custom or lightweight shell. it improves performance by using system resources and is useful for devices that run a dedicated application. If the policy is disabled or […]

AC Anoop C Nair 8 min read
Intune

Enhance macOS Compliance with Custom Security and Compliance Checks to Improve Device Security using Microsoft Intune

Key Takeaways In this post we are discussing about Enhance macOS Compliance with Custom Security and Compliance Checks to Improve Device Security using Microsoft Intune. Microsoft has announced the general availability of Custom Compliance Settings for macOS in Microsoft Intune. The feature helps organizations strengthen security controls while supporting many types of macOS management scenarios. […]

AC Anoop C Nair 4 min read
Intune

Manage Samsung Galaxy Firmware Versions to Improve Security and Compliance using Microsoft Intune

Key Takeaways In this post we are discussing Manage Samsung Galaxy Firmware Versions to Improve Security and Compliance using Microsoft Intune. Microsoft Intune has received a new update that expands firmware management capabilities for Samsung Galaxy devices through Firmware Versionsintegration. This enhancement gives IT administrators more control over firmware and operating system updates, helping them […]

AC Anoop C Nair 4 min read
Intune

MS Intune Adds Windows Registry Data Collection to Device Inventory for Single Values All Key Values and Subkeys

Key Takeaways Microsoft Intune 2607 introduces Windows Registry Data collection in Device Inventory, allowing IT admins to verify actual device configurations without relying on custom discovery or remediation scripts. Using the Properties Catalog, admins can collect registry information through Single Value, All Values Under a Key (Non-Recursive), or Same Value Across Subkeys. MS Intune Adds […]

AC Anoop C Nair 5 min read