Quantcast
Channel: All about Microsoft Endpoint Manager
Viewing all articles
Browse latest Browse all 444

Configmgr SSRS Report : Patch Compliance Statistics Last 30 days

$
0
0

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 thumb2 Configmgr SSRS Report : Patch Compliance Statistics Last 30 days

SQL Code Used in SSRS Report:

select UI.Title, UI.BulletinID,
Count (case when UCS.ResourceID is not null then ‘*’ else Null end) as  Targetted,
Count(case when UCS.Status=3 then ‘*’ else Null end )AS Installed,
Count (case when UCS.Status=2 then ‘*’ else Null end ) AS Missing,
CONVERT(decimal(5,2),round(100.00*COUNT(case when UCS.Status=3 then UCS.ResourceID else NULL End) /count(UCS.ResourceID),1)) ['Success Ratio %'],
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,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_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

 

Looking for RDL file ? Download it from here,uploaded to your SSRS Report folder and Run wlEmoticon smile Configmgr SSRS Report : Patch Compliance Statistics Last 30 days

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

Configmgr SSRS Report : Patch Compliance Statistics Last 30 days is a post from: Eswar Koneti's Blog


Viewing all articles
Browse latest Browse all 444

Trending Articles