I have an audit comming up and I would like to create a custom dash board for the auditors. This way they could find the info that they are looking for direclty.
One of the reports that we will be giving them is the Count of all instances of software registered with Add or Remove Programs. The problem with this report is that it prompts you to enter in the group that you would like to run it against. This does not work for dashboards.
I want to copy the report and change the sql query in order to give it the name of the group as opposed to prompting for it.
I cannot figure out how to do this. I will copy the code bellow and the group I want to run it against is Collection ID SMS000ES. If someone could help and explain what they are doing, I hopefully will be able to grasp this and apply it to other reports that they will want.
SELECT DisplayName0, Count(*) AS 'Count', Publisher0, Version0, @CollID as CollectionID
FROM v_Add_Remove_Programs arp
JOIN v_FullCollectionMembership fcm on arp.ResourceID=fcm.ResourceID
WHERE fcm.CollectionID = @CollID
GROUP BY DisplayName0, Publisher0, Version0
ORDER BY Publisher0, Version0