Forums on Intune, SCCM, and Windows 11

Welcome to the forums. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your topics and posts, as well as connect with other members through your own private inbox!

SOLVED create collection based on query

  • Thread starter Thread starter dj3094
  • Start date Start date
  • Replies Replies 4
  • Views Views 3K
Status
Not open for further replies.

dj3094

Well-Known Member
Messages
241
Reaction score
7
Points
18
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%"

Thanks
 
Thanks Garath, I tried it but didn't work.
I got the results
here is what I did
Create a collection with all work stations
create a collection with Mcafee virusscan enterprise installed
create a collection with Mcafee Threat prevention enterprise installed

I excluded them from all work stations
 
There is more than one way to do it. If this works for you then, use it.
 
Last edited:
Status
Not open for further replies.
Back
Top