How to create an Azure AD dynamic device group for specific laptop model running Windows 11
In this example, we are creating a dynamic group for Windows 11 Surface devices that we can use to target policy and configuration settings to Surface Pros and Surface laptops running Windows 11.
This will allow us to rollout Windows 11 configuration policies and have them only apply to these specific devices and not the rest of our Windows 10 computers.
Windows 10 version numbers start with 10.0.1
Windows 11 version numbers start with 10.0.2
systeminfo | findstr /B /C:"OS"
Example: Windows 11 OS version number
Logon to the Azure Portal
Azure AD - Groups - New Group
Group type: Security
Group name: Windows 11 - Surface Devices
Membership type: Dynamic Device
Add dynamic query
Here is a quick list of device properties you might find useful when creating dynamic group membership rules
| Property | Operator | Example Value | Notes |
| deviceModel | Contains | Surface | |
| deviceOSType | Contains | Windows | |
| deviceOSVersion | Starts With | 10.0.2 | Windows 11 |
| deviceOSVersion | Starts With | 10.0.1 | Windows 10 |
| deviceOwnership | Equals | Company | Corporate owned |
Click add expression to configure the following rules, then save and create the dynamic group
deviceModel
Contains: Surface
deviceOSType
contains: Windows
deviceOSVersion
Starts With: 10.0.2
# Rule syntax (device.deviceModel -contains "Surface") and (device.deviceOSType -contains "Windows") and (device.deviceOSVersion -startsWith "10.0.2")
# Rule syntax (device.deviceOSType -contains "Windows") and (device.deviceOSVersion -startsWith "10.0.1") and (device.deviceOwnership -eq "Company")
Select the dynamic device group - members to see the laptops that have been automatically added to the group.
Reference:
by Author
Dynamic membership rules for groups in Azure Active Directory
https://learn.microsoft.com/en-us/azure/active-directory/enterprise-users/groups-dynamic-membership
Comments