SCCM How to create a device collection to know how many workstations have an application

Copper Contributor

Hi all,

 

How to create a device collection to know how many workstations have an application called CBT.exe regardless of the version?

 

Thanks

1 Reply
Hi KB2030,

You can create a device collection with the query that below. The number of devices in the collection is how many devices have the CBT.exe file.

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_SoftwareFile on SMS_G_System_SoftwareFile.ResourceID = SMS_R_System.ResourceId where SMS_G_System_SoftwareFile.FileName = "CBT.exe"

Best Regards