Question
How to build 
Resolution
- Launch SCCM Console and proceed to "Assets and Compliance" → "Device Collections"
 - Press "Create" → "Create Device Collection";
 - Give it a name and specify "All Mac OS X Systems" as a limiting collection, click "Next":

 - Click "Add Rule" → "Query Rule":

 - Give the rule some name and click "Edit Query Statement";
 - Click on "Show Query Language" and paste the code 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 where SMS_R_System.ClientVersion like "%-PMA" and SMS_R_System.AgentName like "PMM_MDM_DISCOVERY_AGENT" - Click "OK","Next" and "Close";
 - Wait for the collection to update its members.
 
Was this article helpful?
Tell us how we can improve it.