Close Menu
    Facebook X (Twitter) Instagram
    Sunday, October 12
    X (Twitter) LinkedIn Reddit RSS
    All about Endpoint Management
    • Home
    All about Endpoint Management
    Home»SCCM 2007»SCCM Report status of Packages used in Task Sequence

    SCCM Report status of Packages used in Task Sequence

    Eswar KonetiBy Eswar KonetiNovember 01, 6:42 pm2 Mins Read SCCM 2007 10,777 Views
    Share
    Facebook Twitter LinkedIn Reddit

    Another Interesting report which will help you to identify if there are any packages used in Task Sequence are not available on Distribution Points.

    If the Reference packages used in Task Sequence not available on DP,your Task sequence will fail and then u come back to fix the issues so lets be proactive Smile.

    SCCM 2012 presents nice view with compliance level for the reference packages used in Task Sequence.

    select
    pkg.Name as [Package Name],
    Case pkg.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'
    Else ' '
    END AS 'Package Type',
    pkg.PackageID,
    SUBSTRING(dp.ServerNALPath, CHARINDEX('\\', dp.ServerNALPath) + 2, CHARINDEX('"]', dp.ServerNALPath) - CHARINDEX('\\', dp.ServerNALPath) - 3 ) AS [Server Name],
    dp.SiteCode,
    dp.LastRefreshTime,
    stat.SourceVersion,
    stat.LastCopied,
    stat.SummaryDate,
    stat.InstallStatus,
    case when dp.IsPeerDP=1 then '*' else '' end as BranchDP
    from v_Package pkg
    join v_DistributionPoint dp on pkg.PackageID=dp.PackageID
    join v_PackageStatusDistPointsSumm stat on dp.ServerNALPath=stat.ServerNALPath
                                                 and dp.PackageID=stat.PackageID
    where stat.State!=0 and pkg.PackageID in (select ReferencePackageID from v_TaskSequenceReferencesInfo
    where PackageID =@TS1)

    Prompt for TS:

    select PackageID,Name from v_TaskSequencePackage

    You can create n number of Prompts with above Query if you want to look for multiple task sequences.

    Note: Please replace the quotes used in this report as they converted to Fancy by Blog.

    Attached MOF file Status of Task sequence which you can import directly into SCCM

    Package type SCCM 2012 sccm report Status of Task Sequence Packages Task Sequence Task Sequence reference Packages Status Report
    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

    SCCM report list collections with no deployments

    December 05, 12:04 pm

    25 Comments

    1. Raghav on November 16, 2016 4:28 PM

      any command to check whether application is part of TS
      using powershell

      Reply
      • Eswar Koneti on November 18, 2016 9:50 PM

        haven't tried it but it can be done using powershell. I always recommended to go with reports as it is easier to run by anyone and can access using the URL without much needs.
        When you have easier method,why to look at other methods .

        Thanks,
        Eswar

        Reply
    2. Mark on September 15, 2015 1:45 AM

      If you could provide a download in RDL format for sccm 2012 would be awesome.

      Thanks,

      Mark

      Reply
      • Eswar Koneti on September 15, 2015 2:35 PM

        There is default report to check the status of reference packages used in particular task sequence. check report "Task Sequence - References > Content referenced by a specific task sequence"

        Reply
    3. Mark on September 15, 2015 1:43 AM

      If you could get this report into a SCCM 2012 RDL format, would be awesome. When I tried to import the MOF via client settings, I got an error.

      Reply
      • Eswar Koneti on September 15, 2015 2:36 PM

        There is default report to check the status of reference packages used in particular task sequence. check report "Task Sequence - References > Content referenced by a specific task sequence"

        Reply
    4. Konstantin on March 23, 2015 8:40 PM

      Hi Eswar,

      I run the query, it doesn't give any errors. But when I select the PackageID of the Task sequence, I want to check, it simply displays an empty report. Is there something that I miss here ?

      Thanks in advance!

      BR,
      Konstantin Popov

      Reply
      • Konstantin on March 23, 2015 8:45 PM

        Also,

        This query references only the Packages. I am using SCCM 2012, and I want to show the referenced Applications by the Task Sequence also. Any idea how I can do that ?

        Thanks!

        Cheers,
        Konstantin

        Reply
        • Eswar Koneti on March 25, 2015 7:42 AM

          yes,this is for CM07 and in CM12,packages and applications are stored in different tables .To know the status of packages used in the task sequence,you can simply look at references tab from your task sequence ,you will have column name compliance%.

          Reply
      • Eswar Koneti on March 25, 2015 7:40 AM

        This report was created for CM07 ,CM12 has different tables and views for task sequences.if you are using CM12,you can directly check this from sccm console by looking at task sequence references tab to know the package compliance.

        Reply
        • Konstantin on April 6, 2015 2:28 PM

          Hi Eswar,

          Thank you very much for taking the time to answer my questions. I am aware of the references and the status of the applications, shown there. My point was to make a report out of it, so that I can present it to a customer for example. But anyway, I will search the tables and views and see what I can come up with. If I get it, I will post the query here.

          Cheers,
          Konstantin

          Reply
    5. Paramesh on June 5, 2014 1:04 AM

      Hi Eswar,

      how to declare @TS1?

      Reply
      • Eswar Koneti on June 6, 2014 2:06 PM

        it is given the report with syntax How to create prompt for TS1:
        Try this: select PackageID,Name from v_TaskSequencePackage

        Reply
    6. Chad on February 27, 2013 10:25 PM

      Thanks! I imported the MOF and it works great now!

      Reply
      • Eswar Koneti on March 8, 2013 11:50 AM

        great!

        Reply
    7. Chad on February 26, 2013 8:12 PM

      I did replace both the single and double quotes along with the dashes. If you'd like you can always e-mail me the original in a text document to see if that matters. This time I also ran in SQL Management Studio 2008 R2 (does NOT have SP1) and I received the following error.

      Msg 103, Level 15, State 4, Line 23
      The identifier that starts with ' end as BranchDP
      from v_Package pkg
      join v_DistributionPoint dp on pkg.PackageID=dp.PackageID
      join v_PackageStatusDistPointsS' is too long. Maximum length is 128.
      Msg 105, Level 15, State 1, Line 23
      Unclosed quotation mark after the character string ' end as BranchDP
      from v_Package pkg
      join v_DistributionPoint dp on pkg.PackageID=dp.PackageID
      join v_PackageStatusDistPointsSu'.
      Msg 102, Level 15, State 1, Line 23
      Incorrect syntax near ' end as BranchDP
      from v_Package pkg
      join v_DistributionPoint dp on pkg.PackageID=dp.PackageID
      join v_PackageStatusDistPointsS'.

      Reply
      • Eswar Koneti on February 27, 2013 1:01 PM

        ok i exported the report for you into MOF file and attached here.Should ease for you.

        Reply
    8. Chad on February 25, 2013 7:14 PM

      Thanks I just tried the new statement and still get the same error. BTW I'm using this in SCCM 2007 R3.

      Reply
      • Eswar Koneti on February 26, 2013 11:38 AM

        it worked for me without any issues....try this .I ran in SQL Management Studio.Dont forget to replace the quoates

        select
        pkg.Name as [Package Name],
        Case pkg.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'
        Else ' '
        END AS 'Package Type',
        pkg.PackageID,
        SUBSTRING(dp.ServerNALPath, CHARINDEX('\\', dp.ServerNALPath) + 2, CHARINDEX('"]', dp.ServerNALPath) - CHARINDEX('\\', dp.ServerNALPath) - 3 ) AS [Server Name],
        dp.SiteCode,
        dp.LastRefreshTime,
        stat.SourceVersion,
        stat.LastCopied,
        stat.SummaryDate,
        stat.InstallStatus,
        case when dp.IsPeerDP=1 then '*' else '' end as BranchDP
        from v_Package pkg
        join v_DistributionPoint dp on pkg.PackageID=dp.PackageID
        join v_PackageStatusDistPointsSumm stat on dp.ServerNALPath=stat.ServerNALPath
        and dp.PackageID=stat.PackageID
        where stat.State!=0 and pkg.PackageID in (select ReferencePackageID from v_TaskSequenceReferencesInfo
        where PackageID =@TS1)

        Reply
    9. Chad on February 22, 2013 10:31 PM

      Hello Eskonr,

      I removed the quotes in notepad but I'm getting an error after hitting OK in the report SQL statement that says "Unclosed quotation mark after the character string ' end as BranchDP..." it then lists the rest of the code. Any thoughts?

      Reply
      • Eswar Koneti on February 23, 2013 8:43 PM

        Try the query now.I uncommented the case statement for branch DP.

        Reply
    10. Martin on November 6, 2012 8:06 PM

      When i copy the script, the quotes are exactly copied as you put them in the script?

      Reply
      • Eswar Koneti on November 6, 2012 8:11 PM

        Did the report work ? If so no worries .What i guess is it will give error so you need to remove the quotes and type in again.

        Reply
    11. Martin on November 6, 2012 6:21 PM

      Hello Eskonr,

      This is exactly the script i was looking for, In your note you say replace the quotes, but can you please explain what quotes you mean to change into what?

      Reply
      • Eswar Koneti on November 6, 2012 7:32 PM

        Quotes could be single(') or double(").If you copy the code into Notepad and look at the quotes you will see the difference what am talking about.

        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.