Recently I had an issue where ActiveSetup wasn’t installing some applications when deployed. It turned out that it was due to some of the packaged applications not having a program with the Windows installer information populated. As it was believed that this may not an isolated issues I was tasked with producing a report of all Packages where the information was missing. This is not actually possible via the default reports as none of the views exposed to SCCM actually contain this information. The only way to get this information is to query the SCCM database table “PkgPrograms”, and to do that and have a permenant report SSRS is needed as it can run with the credentials of the user generating it or with an execution account which may have more access.
The report uses the following SQL statement:
INNER JOIN v_Package vpa ON tpr.PkgID = vpa.PackageID
vpa.PackageType = '0' -- Application Packages
tpr.Command like '%msi%'
tpr.PkgID NOT IN (
MSIProductID <> ''
GROUP BY tpr.PkgID,vpa.Manufacturer,vpa.Name,vpa.Version
ORDER BY Manufacturer, Name
- 0 – Application Packages
- 3 – Drivers
- 4 – Task Sequences
- 5 – Software Updates
- 257 – Operating System Images
- 258 – WinPE Boot Images
- 259 – Operating System Install Packages
- [download id=”50″]