Örneğin Microsoft Lync 2010 yüklü olmayan bilgisayarlar topluluğu için ;
Siz Program Ekle kaldır kısmından (test pc nizden olabilir) istediğini programın tam ismine bakıp değiştirerek kullanabilirsiniz.
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_COMPUTER_SYSTEM
on
SMS_G_System_COMPUTER_SYSTEM.ResourceID = SMS_R_System.ResourceId
where
SMS_G_System_COMPUTER_SYSTEM.
not
in
(
distinct
SMS_G_System_ADD_REMOVE_PROGRAMS
SMS_G_System_ADD_REMOVE_PROGRAMS.ResourceID = SMS_R_System.ResourceId
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ş , hazirlayanin emegine saglik.
iyi çalışmalar