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 Trying to create collection for machines without certain progrm

  • Thread starter Thread starter jrt
  • Start date Start date
  • Replies Replies 3
  • Views Views 1K

jrt

Member
Messages
11
Reaction score
1
Points
3
Hi all, I spent agents on google and other forums, still can't get this to work.

The software is called Smoothwall Safeguarding Client, this is how it appears in control panel.
1736846598970.png

The script in SCCM is:
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_64 on SMS_G_System_ADD_REMOVE_PROGRAMS_64.ResourceID = SMS_R_System.ResourceId where SMS_G_System_ADD_REMOVE_PROGRAMS_64.DisplayName != "Smoothwall Safeguarding Client"

I have tried with and without the % in the name of the app. The collection seems to bring up all my machines whether its Like or Not Like.

Any ideas?!

What I am trying to achieve is the ability to work out which machines don't have the software so we can troubleshoot them. Thanks!
 
You need to use a subselect query. These blogs will get you going.
 
and these ones.

 

Forum statistics

Threads
7,135
Messages
27,868
Members
18,157
Latest member
rajkumarkrishnan
Back
Top