Menu
CCMEXEC.COM – Enterprise Mobility
  • Home
  • General
  • Configuration Manager
  • Windows 10
  • Intune
  • GitHub
  • Windows 11
  • About the author
CCMEXEC.COM – Enterprise Mobility

SCCM Packages report with Packagetype

Posted on May 20, 2011 by Jörgen Nilsson

There was a question asked in the Microsoft Technet forum after a report which displayed all virtual application packages in the site. From that I got the idea to add a column to the normal All Packages report which contains the Packagetype. After the modification the report looks has a new column called Package Type and looks like this:

PackagesReport

I hope this can be useful for more than myself, the report can be downloaded here: https://ccmexec.com/wp-content/uploads/2011/05/Packagereport.MOF

If you want the query instead it looks like this with all the changes from the standard report displayed in bold:

SELECT Name AS C062,
PackageType =
Case Packagetype
When 0 Then ‘Software Distribution Package’
When 3 Then ‘Driver Package’
When 4 Then ‘Task Sequence Package’
When 5 Then ‘Software Update Package’
When 6 Then ‘Device Settings Package’
When 7 Then ‘Virtual Package’
When 257 Then ‘Image Package’
When 258 Then ‘Boot Image Package’
When 259 Then ‘OS Install Package’
End,
Description,
Manufacturer,
Version,
Language,
v_Package.SourceSite,
SUBSTRING(ServerNALPath, CHARINDEX(‘\\’, ServerNALPath) + 2, CHARINDEX(‘”]’, ServerNALPath) – CHARINDEX(‘\\’, ServerNALPath) – 3 ) as C070,
v_Package.PackageID,
case when v_DistributionPoint.IsPeerDP=1 then ‘*’ else ” end as BranchDP
FROM v_Package
LEFT OUTER JOIN v_DistributionPoint ON v_Package.PackageID = v_DistributionPoint.PackageID
ORDER by Name
SELECT Name AS C062,
PackageType =
Case Packagetype
When 0 Then ‘Software Distribution Package’
When 3 Then ‘Driver Package’
When 4 Then ‘Task Sequence Package’
When 5 Then ‘Software Update Package’
When 6 Then ‘Device Settings Package’
When 7 Then ‘Virtual Package’
When 257 Then ‘Image Package’
When 258 Then ‘Boot Image Package’
When 259 Then ‘OS Install Package’
End,
Description,
Manufacturer,
Version,
Language,
v_Package.SourceSite,
SUBSTRING(ServerNALPath, CHARINDEX(‘\\’, ServerNALPath) + 2, CHARINDEX(‘”]’, ServerNALPath) – CHARINDEX(‘\\’, ServerNALPath) – 3 ) as C070,
v_Package.PackageID,
case when v_DistributionPoint.IsPeerDP=1 then ‘*’ else ” end as BranchDP
FROM v_Package
LEFT OUTER JOIN v_DistributionPoint ON v_Package.PackageID = v_DistributionPoint.PackageID

ORDER by Name

3 thoughts on “SCCM Packages report with Packagetype”

  1. Umesh Mishra says:
    October 18, 2011 at 9:30 am

    This is really nice and helpful query.

    thanks,

    Reply
  2. Pingback: ConfigMgr Package Status Reports »
  3. Rikard Ronnkvist says:
    October 7, 2013 at 8:56 am

    Did a little bit more work around this…

    http://www.snowland.se/2013/10/07/configmgr-package-status-reports/

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

My name is Jörgen Nilsson and I work as a Senior Consultant at Onevinn in Malmö, Sweden. This is my blog where I will share tips and stuff for my own and everyone elses use on Enterprise Mobility and Windows related topics.
All code is provided "AS-IS" with no warranties.

Tweets by ccmexec

Recent Posts

  • Windows Servicing, Personal Teams and Success.cmd
  • Windows MDM Security Baseline – Settings Catalog
  • Configuring MS Edge Security Baseline v107 using Settings Catalog
  • Configuring Desktop App Installer using CSP and script?!
  • Customizing Taskbar and Start in Windows 11 22h2 with PowerShell

©2023 CCMEXEC.COM – Enterprise Mobility | WordPress Theme by Superb Themes
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish.Accept Reject Read More
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SAVE & ACCEPT