Hi,
Thanks for posting in Microsoft MECM Q&A forum.
We can use the OS build number to create Windows 10 21H1 collection and 21H2 collection.
1,The OS build number for Windows 10 21H2 is 19044, so the query is as below:
select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System inner join SMS_G_System_OPERATING_SYSTEM on SMS_G_System_OPERATING_SYSTEM.ResourceId = SMS_R_System.ResourceId where SMS_G_System_OPERATING_SYSTEM.BuildNumber = "19044"
For more details, please refer to: Create Windows 10 21H2 Collection in SCCM
2,The OS build number for Windows 10 21H1 is 19043, just change the build number of above query to 19043 will be ok. Refer to:
Create SCCM Windows 10 21H1 Device Collection
Best regards,
Simon
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.