Hi
I'm trying to create a report(query) to show machines that doesn't have a specific program installed..
I'm using this query:
select SMS_G_System_SYSTEM.Name from SMS_R_System inner join SMS_G_System_SYSTEM on SMS_G_System_SYSTEM.ResourceID = SMS_R_System.ResourceId where SMS_G_System_SYSTEM.Name not in (select SMS_G_System_SYSTEM.Name from SMS_R_System inner join SMS_G_System_SYSTEM on SMS_G_System_SYSTEM.ResourceID = SMS_R_System.ResourceId 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 = "Microsoft Lync 2010")
I was hoping it would show me the machines that doesn't have the program installed.. but the result returned show most of the devices in sccm...
1 of the devices that I know doesn't have Lync 2010 shows up in the list.. but 98% of all the other devices in the result DO have lync installed..
I've limited the query to all windows 7 devices..
So where's my mistake?
Kindest regards, Martin