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.

Advertisements

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

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s