System Center
Matt Hansen  

SCCM Collection Query for all Workgroup Machines

Reading Time: < 1 minute

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.

1 Comment

  1. Joel

    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

Discover more from Hansen Cloud

Subscribe now to keep reading and get access to the full archive.

Continue reading