Close Menu
    Facebook X (Twitter) Instagram
    Sunday, September 13
    X (Twitter) LinkedIn Reddit RSS
    All about Endpoint Management
    • Home
    All about Endpoint Management
    Home»Patch Reports»#SCCM / #Configmgr Script to Delete Expired Updates

    #SCCM / #Configmgr Script to Delete Expired Updates

    Eswar KonetiBy Eswar KonetiAugust 07, 5:56 pm1 Min Read Patch Reports
    Share
    Facebook Twitter LinkedIn Reddit

    Long ago Raphael blogged nice post how to delete expired updates from Configuration Manager 2007 http://wmug.co.uk/wmug/b/dotraphael/archive/2012/04/19/script-deleteexpiredupdates.aspx but script is not available to download now with current link.

    This script is intended to remove all expired updates from a package or Deployment and was showed by the MVP Kent Agerlund on his presentation at MMS 2012 http://blog.coretech.dk/kea/mms-2012-simplify-your-deployments/

    If you'd like to try (at your own risk), you can download it from here (just remember to remove _.txt to convert to vbs)

    Examples:

    cscript.exe DeleteExpiredUpdates.vbs /SMSProvider:CM01 /PkgID:"A010000E"
    cscript.exe DeleteExpiredUpdates.vbs /SMSProvider:CM01 /AssignmentID:"1;2;3;4;5;6;7;8;9"
    cscript.exe DeleteExpiredUpdates.vbs /SMSProvider:CM01 /PkgID:"A010000E" /AssignmentID:"1;2;3;4;5;6;7;8;9"

    configmgr delete expired updates SCCM SCCM 2007 script script deleteexpiredupdates
    Share. Twitter LinkedIn Email Facebook Reddit

    Related Posts

    SCCM PXE Boot Issue could not find boot image – abortpxe.com

    July 30, 9:17 pm

    Automating Cleanup of Disconnected RDP Sessions on Windows Servers Using PowerShell

    June 29, 10:04 pm

    Export the List of Products from the Software Update Point (SUP) in SCCM Using SQL Query

    November 08, 10:39 am

    Leave A Reply Cancel Reply

    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.