Skip to content
Create SCCM Collection for Co-Managed Devices

Create SCCM Collection for Co-Managed Devices

Written By Anoop C Nair
Last Updated August 28, 2024
Posted In SCCM
SHARE

Create the SCCM Collection for Co-Managed Devices using this How-to Guide. Let’s learn more about the SCCM collection for Co-Managed Devices.

The brain of this post is the WQL query to create an SCCM (ConfigMgr) dynamic device collection for co-managed devices. You can have both static collections and dynamic collections for grouping co-managed devices.

I prefer a dynamic device collection to target policies/applications to co-managed devices. Well, what are co-managed devices? The Co-managed Windows 10/Windows 11 devices are simultaneously managed by ConfigMgr (a.k.a SCCM) and Intune.

SCCM Collections are used to create groups of users or devices. They can also help with typical ConfigMgr admin tasks like deploying Operating systems, managing applications, deploying compliance settings, or installing patches.

Patch My PC

Create ConfigMgr Co-Managed Dynamic Device Collection

Let’s create a dynamic collection for grouping co-managed devices from your environment.

  1. Navigate to the SCCM console –  Assets and Compliance – Device Collections.
  2. Right-click and select “Create Device Collection” from the Device Collections node.
  3. On the General page, provide a Name and a Comment.
  4. You must be careful about Limiting collection (I don’t recommend selecting All Systems collection).
    • Choose Browse to select a limiting collection. The collection will only contain members from the limited collection.
  5. Click on Next to continue.
Create SCCM Collection for Co-Managed Devices - Fig.1
Create SCCM Collection for Co-Managed Devices – Fig.1

On the Membership Rules page of the Create Device Collection Wizard, in the Add Rule list. Select the type Query Rule membership rule for this collection. You have an option to create multiple rules for each collection.

Add Rule list, select Query Rule. On the Query Rule Properties windows, specify the following information:

  • Enter the Query Name: Specify a unique name.
  • Resource class: You must select System Resource to create Dynamic Device Collection in SCCM.
  • Click Edit Query Statement to open the Query Statement Properties dialog box.
Create SCCM Collection for Co-Managed Devices - Fig.2
Create SCCM Collection for Co-Managed Devices – Fig.2

NOTE! You can verify whether the collection query is correct by clicking on the Green play button. The Verify SCCM Collection Query Preview Tool is always useful in this kind of scenario.

To create a dynamic device collection, use the WQL query from the following section (WQL Query—SCCM Collection for Co-Managed Devices).

  • Click OK, OK, OK to close all dialog boxes.
  • On the Membership Rules page, click on NEXT.
  • Click NEXT, NEXT, and Close to finish Creating the Device Collection Wizard.
Create SCCM Collection for Co-Managed Devices - Fig.3
Create SCCM Collection for Co-Managed Devices – Fig.3

WQL Query – Create SCCM Collection for Co-Managed Devices

Use the following WQL query to create a ConfigMgr dynamic device collection for Co-managed devices.

NOTE! – Try the WQL query in a testing/staging environment before trying this in a production environment.

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_Client_ComanagementState on SMS_Client_ComanagementState.ResourceId = SMS_R_System.ResourceId 
where SMS_Client_ComanagementState.ComgmtPolicyPresent = 1 AND SMS_Client_ComanagementState.MDMEnrolled = 1 AND MDMProvisioned = 1

Results

The results of the SCCM Collection for Co-Managed Devices are shown in the screenshot below. In the SCCM lab environment, only two devices are co-managed.

Create SCCM Collection for Co-Managed Devices - Fig.4
Create SCCM Collection for Co-Managed Devices – Fig.4

Resources

We are on WhatsApp. To get the latest step-by-step guides and news updates, Join our Channel. Click here –HTMD WhatsApp.

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 · 2 comments

  1. Nice, and what about clients that are NOT co-managed?

    That would be:
    where SMS_Client_ComanagementState.ComgmtPolicyPresent = 1 AND MDMProvisioned = 0

    ?

    Thanks!

Join the discussion

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

Related guides

Intune

Windows 11 KB5101650 KB5099414 July 2026 Patch and 3 Zero Day Vulnerabilities and 570 Flaws

Key Takeaways Windows 11 KB5101650 KB5099414 July 2026 Patch and 3 Zero Day Vulnerabilities and 570 Flaws! In the July 2026 Patch, Microsoft introduced new features designed to improve the overall Windows experience. The update adds enhancements to Windows Update for more flexible update management and introduces Point-in-Time Restore, providing an additional recovery option for […]

AC Anoop C Nair 9 min read
Intune

2026 June KB5094126 KB5093998 Windows 11 Patch | 3 Zero Day Vulnerabilities and 200 Flaws

Key Takeaways 2026 June KB5094126 KB5093998 Windows 11 Patch | 3 Zero Day Vulnerabilities and 200 Flaws! The June 2026 Windows 11 Patch Tuesday update brings several improvements to File Explorer. It adds support for additional archive formats, including UU, CPIO, XAR, and NuGet Packages (NUPKG). The update also preserves View and Sort preferences in […]

AC Anoop C Nair 10 min read
Intune

2026 May KB5089549 KB5087420 Windows 11 Patch | 0 Zero Day Vulnerabilities and 120 Flaws

Key Takeaways The Windows 11 May 2026 Patch KB5089549 KB5087420 Update brings important security fixes, performance improvements, and reliability enhancements across the operating system. The update introduces new features such as Xbox Mode for gaming, File Explorer improvements, enhanced input and sharing experiences, better taskbar and Windows Hello reliability, and additional enterprise management capabilities for […]

AC Anoop C Nair 8 min read
SCCM

ConfigMgr 2603 Introduces New Early Update Enrollment Process

Key Takeaways In this post we are discussing the ConfigMgr 2603 Introduces New Early Update Enrollment Process. Microsoft has officially released Configuration Manager version 2603 to the Early Update Ring, giving organizations an opportunity to test upcoming improvements before the global production rollout. The release is targeted at enterprises running ConfigMgr version 2409 or later […]

AC Anoop C Nair 3 min read