I would like to use a query that will query my systems that have a particular piece of software (Flash), but I do not want it to include servers that are in a particular group.
Explanation: I have about 20 servers with Flash installed that require it. About half of them I can update regularly, the other half I can't. So, I have an AD group for each - the ones I can patch, and the ones I can't. I want the query to look for systems with "Adobe Flash" in the display name, but exclude the servers in both of these groups. That way I can create a collection of computers that have Flash installed where it shouldn't be and can keep an eye on where it is being installed.
The query looks like this in the criteria tab;
Add/Remove Programs.Display Name is like "%Adobe Flash%"
and
System Resource.System Group Name is not equal to "LAB\FlashPatchGroup"
The query language looks like this;
select distinct SMS_R_System.Name, SMS_R_System.description, SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName, SMS_G_System_ADD_REMOVE_PROGRAMS.Version 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 Flash%" and SMS_R_System.SystemGroupName != "LAB\\FlashPatchGroup"
The problem I am having is that when I run the query, it is pulling everything with Flash, including the ones in the AD group. Anyone see a problem with the way I'm doing this?