Close Menu
    Facebook X (Twitter) Instagram
    Saturday, October 11
    X (Twitter) LinkedIn Reddit RSS
    All about Endpoint Management
    • Home
    All about Endpoint Management
    Home»SCCM 2007»SCCM report Count packages with no advertisements

    SCCM report Count packages with no advertisements

    Eswar KonetiBy Eswar KonetiAugust 23, 7:17 pm1 Min Read SCCM 2007 2,773 Views
    Share
    Facebook Twitter LinkedIn Reddit

    This blog post will help you to identify packages (count) for which there is no advertisement created and not used these packages in any task sequence.Once you have the packages ,you can further take action whether you really need these packages to exist in SCCM or cleanup to save disk space and avoid unused packages in sccm.

    SQL Query to run from SQL server management studio or use this to create report.

    select     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 ,
    COUNT(PackageType) as Total
    from
    dbo.v_package

    Where
    packageID not in (select PackageID from dbo.v_Advertisement)and
    PackageID not in (SELECT ReferencePackageID FROM v_TaskSequenceReferencesInfo)

    group by PackageType

    Package Types in SCCM packages with no Advertisements sccm package Types sccm report packages not used sccm report packages with no advertisements SQL SQL code
    Share. Twitter LinkedIn Email Facebook Reddit

    Related Posts

    SCCM SQL Report – Compare Installed Apps on TWO Different Computers

    July 13, 10:35 am

    Monitoring Endpoint Security Applications with SCCM ConfigMgr SQL

    October 11, 8:48 pm

    Efficiently Identify Co-Managed Devices: Techniques and Tools

    January 17, 8:37 pm

    4 Comments

    1. tanoj icici on December 4, 2016 6:24 AM

      Hi Eswar, Nice Blog and very useful stuff i find in your Blog , could you please help me in getting query to find 1. Applications with no advertisements,( i found query to get packages with no advertisements) 2. Computers details with more than 10 Failed Advertisements

      Reply
      • Eswar Koneti on December 21, 2016 4:33 PM

        Hi,
        You can refer this post for question 1) http://eskonr.com/2016/12/sccm-configmgr-how-to-find-applications-with-no-deployments-as-part-of-maintenance-tasks/ and for 2) no time on it for now but may be later.

        thanks,
        Eswar

        Reply
    2. Dhivakar on January 25, 2013 1:19 AM

      Hi,

      Could you please help in getting SCCM report Count packages with no advertisements. in this we need package Details like Package Name with ID and Versions of it.

      Please help me in getting this report

      Thanks in advance,

      Regards
      Dhivakar

      Reply
      • Eswar Koneti on January 25, 2013 7:17 AM

        you have it here on my blog http://eskonr.com/2012/08/sccm-report-count-packages-with-no-advertisements/. You can add what more fields you need.

        Reply

    Leave a ReplyCancel reply

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

    Sign Up

    Get email notifications for new posts.

    Author

    I’m Eswar Koneti ,a tech enthusiast, security advocate, and your guide to Microsoft Intune and Modern Device Management. My goal? To turn complex tech into actionable insights for a streamlined management experience. Let’s navigate this journey together!

    Support

    Awards

    Archives

    © Copyright 2009-2025 Eswar Koneti, All rights reserved.

    Type above and press Enter to search. Press Esc to cancel.