IT & IoT Security | Cloud | It's all about the life itself

Nothing in life is as important as you think it is, while you are thinking about it.

SCCM 2012–Bir yazılımın yüklü olmadığı bilgisayarların topluluğunu bulmak için …

Ö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.Name not in
(select distinct SMS_G_System_COMPUTER_SYSTEM.Name
from SMS_R_System
inner join SMS_G_System_COMPUTER_SYSTEM on SMS_G_System_COMPUTER_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 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ş ,

Not : Sitenin sablonundan dolayi sorgunun tamamını kopyalayamazsanız iletişime geçebilirsiniz.

iyi çalışmalar

1 comment found

Comments are closed.