Quantcast
Channel: Patch Reports – All about Microsoft Endpoint Manager
Viewing all articles
Browse latest Browse all 20

SCCM Monthly Patch statistics reports to the management in a simplified manner

$
0
0

This is continuation to the post avilable here on http://eskonr.com/2010/03/monthly-patch-statistics-reports-to-show-up-to-the-management-in-a-simplified-manner/

Report posted on the above link doesnt give you the required information what it gives in SMS 2003 since some of the columns in have been changed i.e product has blank value from v_GS_patchstausEX view etc in sccm 2007.

Below is the modified report that works in SCCM environment.

1) Patch Management summary:

select summ.ID,summ.QNumbers as ‘Q Number’,
COUNT(distinct ps.ResourceID) as ‘Requested’,
COUNT(distinct case when ps.LastState=107 or ps.laststate=102 or ps.laststate=105 then ps.ResourceID else NULL End)  as ‘Installed’,
ROUND(100.0*COUNT(distinct case when ps.LastState=107 or ps.laststate=102 or ps.laststate=105 then ps.ResourceID else NULL End)
/count(distinct ps.ResourceID),2) as ‘Success %’
from v_GS_PatchStatusEx ps
join v_ApplicableUpdatesSummaryEx summ on
   ps.UpdateID=summ.UpdateID
 where (summ.ID=’MS11-075′) and
         (summ.Type=’Microsoft Update’)
group by summ.ID,summ.QNumbers

order by summ.ID

PS: Please correct the quotes used in this query ,if you do copy paste,might give you error like “Incorrect Syntax error ” so type the quotes again by removing the exisinting ones.

I will post other quiries in the mean time what is avilable in SMS 2003 environment.

Attached is MOF file which you can directly import into your configmgr 2007 environment rather copy /paste.Patch_complilance_report.MOF (remove the txt extension,you will get MOF file).


Viewing all articles
Browse latest Browse all 20

Trending Articles