This SQL query was written as a request from a reader wanting to know how to count the number of machines that have McAfee VirusScan Enterprise installed by using the Add And Remove Programs applet.
SQL Query:
Select
Count(SD.Name0) Counts,
PF.DisplayName0,
PF.Version0
From v_Add_Remove_Programs PF
Join v_R_System SD on PF.ResourceID = SD.ResourceID
Where PF.DisplayName0 = 'McAfee VirusScan Enterprise'
Group By PF.DisplayName0, PF.Version0
Order By Counts, PF.Version0
To see the machine names rather than the counts use this query:
SD.Name0,
Group By SD.Name0, PF.DisplayName0, PF.Version0
Order By SD.Name0
No Comments