Jump to content


dj3094

creating collection with query

Recommended Posts

Hello all,

 

I am trying to create a collection to get the machine that does not have McAfee, I am using the below query but not able to get the results. Am i missing anything or what wrong am I doing?

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 inner join SMS_G_System_ADD_REMOVE_PROGRAMS on SMS_G_System_ADD_REMOVE_PROGRAMS.ResourceID = SMS_R_System.ResourceId inner join SMS_G_System_ADD_REMOVE_PROGRAMS_64 on SMS_G_System_ADD_REMOVE_PROGRAMS_64.ResourceID = SMS_R_System.ResourceId where SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%McAfee Endpoint Security Threat Prevention%" or SMS_G_System_ADD_REMOVE_PROGRAMS_64.DisplayName not like "%McAfee Endpoint Security Threat Prevention%" or  SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%McAfee VirusScan Enterprise%" or SMS_G_System_ADD_REMOVE_PROGRAMS_64.DisplayName not like "%McAfee VirusScan Enterprise%"

Share this post


Link to post
Share on other sites

Here's how i would do it. Create a collection of machines that have McAfee installed. Once you're satisfied that this collection populates with all the correct computers, create another collection (McAfee missing) with All Client Workstations as the limiting collection. Once this is setup add the first collection (McAfee installed) as an exclusion collection. This means that it should contain all machines that do not have McAfee installed.

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.