Close Menu
    Facebook X (Twitter) Instagram
    Saturday, October 11
    X (Twitter) LinkedIn Reddit RSS
    All about Endpoint Management
    • Home
    All about Endpoint Management
    Home»CM2012»Configmgr SSRS Report Patch Compliance Statistics Last 30 days

    Configmgr SSRS Report Patch Compliance Statistics Last 30 days

    Eswar KonetiBy Eswar KonetiFebruary 14, 12:43 pm2 Mins Read CM2012 3,177 Views
    Share
    Facebook Twitter LinkedIn Reddit

    Year ago,I created CM07 report to know the patch compliance stats for active patches last 30 days.More info can be found from here.But this report was for configuration manager 2007 which will not work with Configmgr 2012 due to the changes in storing the information in SQL tables/Views.

    I have created similar report for configuration manager 2012.This report will list down all active patches which are deployed during last 30 days .I have used the criteria to filter the days using patch released date(DateCreated).

    image

    SQL Code Used in SSRS Report:

    select UI.Title, UI.BulletinID,CS.NumPresent as Installed,CS.NumMissing as Missing,CS.NumFailed [Failed],
    CS.NumNotApplicable as NotApplicable,CS.NumUnknown as Unknown,
    CONVERT(decimal(5,2),(100.00*(Cs.NumPresent+cs.NumNotApplicable)/Cs.NumTotal)) [Compliant %],
    case UI.IsSuperseded
    when 1 then 'Yes'
    Else 'No' End as [Superseded],
    case UI.Isexpired
    when 1 then 'Yes'
    Else 'No' End as [Expired],
    case UI.IsDeployed
    when 1 then 'Yes'
    Else 'No' End as [Deployed],
    ui.dateposted [Date Posted],UI.DateCreated,
    Deadline=cdl.Deadline,
    UCS.CI_ID,
    UI.InfoURL
    from v_UpdateComplianceStatus UCS
    inner join v_UpdateInfo UI On UI.CI_ID=UCS.CI_ID
    inner join v_Update_ComplianceSummary CS on CS.CI_ID=ucs.CI_ID
    inner join v_R_System Sys on sys.ResourceID=UCS.ResourceID
    inner join v_CICategoryInfo CI On CI.CI_ID=UCS.CI_ID
    outer apply (
    select min(a.EnforcementDeadline) as [Deadline]
    from V_CIAssignment  a
    join v_CIAssignmentToCI  atc on atc.AssignmentID=a.AssignmentID and atc.CI_ID=UCS.CI_ID
    ) cdl
    where (DATEDIFF(Day,UI.DateCreated, GETDATE())) <=30
    group by UI.BulletinID,UI.Title,cdl.Deadline,UI.InfoURL,IsExpired,IsSuperseded,dateposted,IsDeployed,UCS.CI_ID,UI.DateCreated,
    CS.NumPresent,CS.NumMissing,cs.NumNotApplicable,CS.NumUnknown ,CS.NumTotal,Cs.NumFailed

     

    Looking for RDL file ? Download it from here,uploaded to your SSRS Report folder and Run Smile

    To know more about software update management and how does system become compliant in Configmgr refer http://blogs.technet.com/b/system_center_in_action/archive/2011/05/02/test.aspx

    Collection Compliance compliance report for last 30 days configmgr patch compliance report Patch Report Reports SCCM Software update compliance Software update group SQL SSRS SUP report Update report
    Share. Twitter LinkedIn Email Facebook Reddit

    Related Posts

    SCCM SQL Report – Compare Installed Apps on TWO Different Computers

    July 13, 10:35 am

    Optimize Your Intune Workflow with a Powerful Browser Extension

    March 22, 10:39 am

    Migrate Microsoft 365 Updates from SCCM/MECM to Intune for Co-Managed Devices

    February 11, 9:50 pm

    7 Comments

    1. Ashok on July 24, 2014 12:28 PM

      Hi Eswar,

      Do you know which stateid correspond to the failed state?

      If I see the report 'Compliance 7 - Specific software update states' that only has 4 state names as below

      Update is required (corresponds to NumRequired column)
      Update is installed (corresponds to NumPresent Column)
      Detection state unknown (corresponds to NumUnknown column)
      Update is not required (corresponds to NumNotApplicable column)

      But there is no status which corresponds to NumFailed column which could give a list of machines on which the update failed.

      Any idea?

      Reply
      • Eswar Koneti on October 17, 2014 9:11 AM

        you should look at v_Update_ComplianceSummary,it has numfailed value.

        Reply
    2. Pablo Espinar on July 11, 2014 6:33 PM

      Dear Eswar,

      how can I access that TechNet gallery? Could you provide the link?

      Un saludo,

      Pablo

      Reply
      • Eswar Koneti on July 12, 2014 2:20 PM

        Sorry guys.. There is no link or report Avilable to list the computer names. Haven't had time to look at it.will try to get that report later.

        Reply
    3. Ashok on July 11, 2014 12:00 PM

      Thanks for your reply Eswar,

      I can't find the link though, can you please share again?

      Reply
    4. Ashok on July 9, 2014 4:48 PM

      Hi Eswar,

      How do we get the actual list of machines which correspond to those numbers?

      In your example you have 14 machines which have 'Missing' status. How do we get the list of those 14 machines?

      Similarly the list of 'Not Applicable' and 'Failed' machines. I was planning on hyperlinking these numbers to another report which will have the machine names.

      Reply
      • Eswar Koneti on July 10, 2014 5:49 AM

        Nope, i haven't created any hyperlink report yet to list the computer names.will try to get that part later may be.

        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.