Örneğin Microsoft Lync 2010 yazılımı yüklü olmayan bilgisayarların topluluğu(collection) için ;
select
SMS_R_System.ResourceID,SMS_R_System.ResourceType,SMS_R_System.Name,SMS_R_System.SMSUniqueIdentifier,SMS_R_System.ResourceDomainORWorkgroup,SMS_R_System.Clientfrom
SMS_R_Systeminner
join SMS_G_System_COMPUTER_SYSTEM
on
SMS_G_System_COMPUTER_SYSTEM.ResourceID = SMS_R_System.ResourceIdwhere
SMS_G_System_COMPUTER_SYSTEM.Name
not in(select
distinct
SMS_G_System_COMPUTER_SYSTEM.Namefrom
SMS_R_Systeminner
join SMS_G_System_COMPUTER_SYSTEM
on
SMS_G_System_COMPUTER_SYSTEM.ResourceID = SMS_R_System.ResourceIdinner
join SMS_G_System_ADD_REMOVE_PROGRAMS
on
SMS_G_System_ADD_REMOVE_PROGRAMS.ResourceID = SMS_R_System.ResourceIdwhere
SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName like
"%Microsoft Lync 2010%")Bu sorgudaki püf nokta ; SMS_G_System_COMPUTER_SYSTEM.Name yapısı sorgulanırken “not in” ile kısıtlanmış olması. Bence süper olmuş , hazırlayanın emeğine sağlık.
Not: Siz Program Ekle Kaldır kısmından (test PC'nizden olabilir) istediğiniz programın tam ismine bakıp değiştirerek kullanabilirsiniz.
iyi çalışmalar