Hello,
I am hoping someone can tell me why this report is not showing the correct number of updates needed on a machine. I'm using a popular custom report (below) that I'm sure others are using. Basically, the report will show the computer needs 70 security updates but when I click "check updates online" to go against the Microsoft catalog, it shows much less needed. Something like 40. I can't wrap my head around why this is.
Maybe superseded or cumulative updates?
When I go ahead and let the online method install them and then run my scan cycle, the report shows 0 needed afterwards which is correct. So why does it say it needs 70 when I really only need 40 and when done, it shows 0??
Can someone check my report and see where I might be going wrong? I'd like to know how many security updates are available for our servers.
Thank you!
select
CS.Name0,
CS.UserName0,
case
when (sum(case when UCS.status=2 then 1 else 0 end))>0 then ('Needs '+(cast(sum(case when UCS.status=2 then 1 else 0 end)as varchar(10))+ ' Patches'))
else 'Needs 0 Patches'
end as 'Status',
ws.lasthwscan as 'Last HW scan',
FCM.collectionID--,
from
v_UpdateComplianceStatus UCS
left outer join dbo.v_GS_COMPUTER_SYSTEM CS on CS.ResourceID = UCS.ResourceID
join v_CICategories_All catall2 on catall2.CI_ID=UCS.CI_ID
join v_CategoryInfo catinfo2 on catall2.CategoryInstance_UniqueID = catinfo2.CategoryInstance_UniqueID and catinfo2.CategoryTypeName='UpdateClassification'
left join v_gs_workstation_status ws on ws.resourceid=CS.resourceid
left join v_fullcollectionmembership FCM on FCM.resourceid=CS.resourceid
WHERE catinfo2.CategoryInstanceID = '16777247'
and FCM.collectionid = 'CS10000A'
Group by
CS.Name0,
CS.UserName0,
ws.lasthwscan,
FCM.collectionID