Jump to content


Kevin79

Queries involving software

Recommended Posts

I am setting up SCCM 12 and creating groups to install software. I have a collection set up to deploy Adobe Reader. In that collection, I have two queries set up, 1 that checks for 10.0.0 and one that checks for 10.1.0. It seems like they are an "and" collection so all of the clients are showing up because they only have one. How do I create a query (or collection) that will check for the software and be satisfied if it finds one of the two versions? Is there a way to put a minimum value and anything greater than that is considered installed?

 

Attached is a screen shot of what my collection looks like. Below are the two queries.

 

Adobe Reader X 10.0.0 - English

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.SystemGroupName = "<group name>" and SMS_R_System.ResourceId not in (select SMS_G_System_ADD_REMOVE_PROGRAMS.ResourceID from SMS_G_System_ADD_REMOVE_PROGRAMS where SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName = "Adobe Reader X") and SMS_R_System.ResourceId in (select ResourceID from SMS_FullCollectionMembership where CollectionID = "HOL0000E")

 

Adobe Reader X 10.1.0 - English

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.SystemGroupName = "<group name>" and SMS_R_System.ResourceId not in (select SMS_G_System_ADD_REMOVE_PROGRAMS.ResourceID from SMS_G_System_ADD_REMOVE_PROGRAMS where SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName = "Adobe Reader X (10.1.0)") and SMS_R_System.ResourceId in (select ResourceID from SMS_FullCollectionMembership where CollectionID = "HOL0000E")

post-6741-0-27149600-1336270088_thumb.png

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.