SCCM Collection Queries

By | April 16, 2023
sccm logo

Last updated on April 16th, 2023 at 11:25 pm

Read Time:1 Minute, 23 Second

We have been building a number of collections within SCCM lately so we thought we would start to build up a reference here of various collections, some simple, some more complex. We will be adding to this when we can so make sure you come back and check for updates.

Computers with certain prefixes – % being a wildcard

select SMS_R_System.NetbiosName from
 SMS_R_System.NetbiosName = "ABC%"

Adobe Reader XI Installations – from Programs in Control Panel

select SMS_R_System.NetbiosName,  
 SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName from  
 SMS_R_System inner join SMS_G_System_ADD_REMOVE_PROGRAMS on  
 SMS_G_System_ADD_REMOVE_PROGRAMS.ResourceId =  
 SMS_R_System.ResourceId where  
 SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName like “Adobe Reader XI”

Devices based on OU

select distinct * from SMS_R_System
 SMS_R_System.SystemOUName = "OU NAME"

Windows 8 Installations

select SMS_R_SYSTEM.ResourceID,  
 SMS_R_SYSTEM.Client from SMS_R_System   
 SMS_G_System_COMPUTER_SYSTEM on SMS_G_System_COMPUTER_SYSTEM.ResourceId = SMS_R_System.ResourceId   
 "%Workstation 6.2%" or SMS_R_System.OperatingSystemNameandVersion LIKE "%Windows 8%"

More Queries

Our full range of SQL and WQL Collection queries are available here.


If you have any questions or feedback about this post, or if you would like us to create any queries for you, please go ahead and leave us a message below in the comments section and we will get back to you as quick as we can.

Click to rate this post!
[Total: 0 Average: 0]

Free Subscription

If you want to be notified when we post more quality guides like this one, sign up to our free subscription service and you will receive an email when a new post is live.

Join 564 other subscribers.

No need to worry, we will not be filling your inbox with spam and you can unsubscribe anytime you like.

Leave us a message...

This site uses Akismet to reduce spam. Learn how your comment data is processed.