SQL Query to find the list of machines with a particular application installed.


Please find the query below. Change the application Name & Publisher Name according to your need.


SELECT
c.Name0,
a.DisplayName0,
a.Version0,
c.AD_Site_Name0,
b.LastUsedTime0

FROM
v_GS_ADD_REMOVE_PROGRAMS a
Join v_R_System c
On a.ResourceID = c.ResourceID
Join v_GS_CCM_RECENTLY_USED_APPS B
On B.ResourceID = a.ResourceID

WHERE a.ResourceID = c.ResourceID
AND a.DisplayName0 like '%Adobe%Reader%'
AND a.Publisher0 like '%Adobe%'
AND Version0 like '11'


GROUP BY
c.Name0,
a.DisplayName0,
a.Version0,
c.AD_Site_Name0,
b.LastUsedTime0

ORDER BY c.name0

Comments

Popular posts from this blog

SCCM: Determining installed applications last use time_ SQL Query.

Unable to read existing WUA Group Policy object. Error = 0x80004005.

SQL Query to find the detailed Enforcement Status of a Software Update Deployment for Patching.