Close Menu
    Facebook X (Twitter) Instagram
    Sunday, October 12
    X (Twitter) LinkedIn Reddit RSS
    All about Endpoint Management
    • Home
    All about Endpoint Management
    Home»CM2012»sccm 2012 SQL Query Get software updates that are downloaded but not in any software update group

    sccm 2012 SQL Query Get software updates that are downloaded but not in any software update group

    Eswar KonetiBy Eswar KonetiNovember 17, 11:24 am2 Mins Read CM2012 4,747 Views
    Share
    Facebook Twitter LinkedIn Reddit

    Software update groups in Configmgr 2012 simplifies lot of administrative work ,which simply  contains list of updates (must be downloaded before you add any updates) merged to single deployment (can have multiple deployments for single software update group).

    Coming to the subject line, It is necessary (during cleanup activity) to find software updates that are downloaded but not in any software update group (I said software update group but not deployment group ..there is little difference with these two).

    If you want to get software updates that are downloaded but not in any deployment group ,you can refer Stephen blog here.

    so how do I write SQL query here  ? I used sub-selected query to get the updates .

    1) first get list of software updates that are downloaded and part of software update groups

    2) filter the software updates that are not in First query.

    So here is the complete SQL Query for you:

    If you are smart enough in SQL,you can use this SQL ,to create different reports like updates not member of particular software update group or list all updates from specific software update group etc.

    select ui.Title, ui.ArticleID, ui.BulletinID,
    case when ui.IsSuperseded=0 then 'No' else  'Yes' end as [IsSuperseded],
    case when ui.IsExpired=0 then 'No' else  'Yes' end as [IsExpired]
    FROM v_updateinfo ui
    INNER JOIN V_UpdateContents uc ON uc.CI_ID=ui.CI_ID
    WHERE ui.CI_ID NOT IN (SELECT upd.CI_ID from vSMS_CIRelation as cr
    INNER JOIN fn_ListUpdateCIs(1033) upd ON upd.CI_ID = cr.ToCIID
    INNER JOIN V_UpdateContents CC ON cc.CI_ID=upd.CI_ID
    INNER JOIN v_AuthListInfo AL ON al.CI_ID =cr.FromCIID
    where CC.ContentProvisioned='1')
    AND uc.ContentProvisioned='1'
    AND (ui.CIType_ID=1 OR ui.CIType_ID=8)
    GROUP BY
    ui.Title, ui.ArticleID, ui.BulletinID,ui.IsSuperseded,ui.IsExpired
    order by 2
    image

    If you need further information about the Patch URL,Description etc,you can get it from view v_updateinfo.

    CM12 configmgr SCCM Software update report SQL query Update Deployment report Update group Updates downloaded but not deployed
    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

    1 Comment

    1. Pingback: SCCM ConfigMgr Compliance status of client for multiple software update groups | Eswar Koneti Blog

    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.