Quantcast
Channel: Collections – All about Microsoft Endpoint Manager
Viewing all articles
Browse latest Browse all 43

SCCM collection Sub selected Quiries

$
0
0

Have seen lot of questions on how to get list of computers that do not have xxxxxx .This xxxx could be of anything like softwares,file names anything that do not have.

In this post,I will go through step by step procedure how to make it simple.

Step 1: To get list of computers that do not have xxxx,create a collection query that has xxxx. I think this is pretty much easy how to do it using criteria.

Create new collection and edit the query .

Subselected quiries 1 271x300 SCCM collection Sub selected Quiries

Click on Criteria Tab , click Yellow Burst

Subselected quiries 2 269x300 SCCM collection Sub selected Quiries

In the Criterion properties page, click on select

Subselected quiries 3 266x300 SCCM collection Sub selected Quiries

select attribute class and attribute which you want ( here i go with add and remove programs)

Subselected quiries 4 300x177 SCCM collection Sub selected Quiries

 

select the display name which you like xxxxx .I go with Adobe Acrobat .Why i used % is ,it list all computers that contains word like Adobe Acrobat.

Subselected quiries 5 268x300 SCCM collection Sub selected Quiries

Now Click on Show query Language to get the WQL code:

Subselected quiries 6 269x300 SCCM collection Sub selected Quiries

Here is the code we have got that list all computers with particular software installed :

select *  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 Acrobat%”

so cut the query and paste it in notepad we need this again.You will see blank query now.

Subselected quiries 7 269x300 SCCM collection Sub selected Quiries

Step 2: In this step,we will create collection with subselected criteria to get what we need .

Click on the Yellow Burst once again and select criterian type as “Subselected Values” and click on select

Subselected quiries 8 270x300 SCCM collection Sub selected Quiries

 

Subselected quiries 9 300x178 SCCM collection Sub selected Quiries

 

and select the operator as not in and past the query which you copied earlier into it.

Subselected quiries 10 270x300 SCCM collection Sub selected Quiries

 

query which we created earlier is :

select *  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 Acrobat%”

Replace * with SMS_R_System.ResourceID in your qeury and click on Ok.

Subselected quiries 11 267x300 SCCM collection Sub selected Quiries

 You can also filter the above collection to look only for windows 7 computer i.e OS version 6.1 etc .


Viewing all articles
Browse latest Browse all 43

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>