SCCM Collection Query for all Workgroup Machines

Posted on

Nothing too special about this post, just a query statement. Use this query in an SCCM collection and it will give you all WORKGROUP machines.

 

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.ResourceDomainORWorkgroup = “WORKGROUP”

 

There ya go! Hope I’ve made your day, at least a little bit easier.

One thought on “SCCM Collection Query for all Workgroup Machines

    Joel said:
    December 18, 2015 at 10:01 am

    Just a note, this returns all systems in a workgroup OR domain called workgroup. It doesn’t give a collection of machines that are part of a workgroup, not on the domain.

    Joel

Leave a Reply