Close Menu
    Facebook X (Twitter) Instagram
    Monday, June 23
    X (Twitter) LinkedIn
    All about Endpoint Management
    • Home
    All about Endpoint Management
    Home»CM2012»SCCM Configmgr Clean Up Backlogs in Despooler.Box\Receive Folder

    SCCM Configmgr Clean Up Backlogs in Despooler.Box\Receive Folder

    Eswar KonetiBy Eswar KonetiDecember 18, 7:31 am3 Mins Read CM2012 10,926 Views
    Share
    Facebook Twitter LinkedIn Reddit

    SCCM Inbox Folders plays Vital Role in troubleshooting problems with different components. You should keep an Eye on the inbox folders for a backlog of files that wait to be processed.

    There are various methods to monitor the inbox folders (tools/Scripts etc). This Post is going to be focus on Despooler.Box\Receive and clean up files residing older than 30 days.

    Despooler.box\Receive stores the data that is received from a child site or a parent site and process it accordingly.Typically, files are processed and moved as soon as Configuration Manager 2007 receives the instruction file (.ins file).

    In Short about what despooler does is  Despooler component receives the data and hands it off to Replication Manager component then Replication Manager hands the data to the appropriate component to process further.

    But Due to some Reasons,Packages which are sending from hierarchy to child sites stuck and breaks the thread and it again starts sending from beginning.Because of this,files remains in Receive folder without being processed for longer time.

    If you are in small environment (less than 10 sites or so) you can check it manually by looking at Despooler.Box\Receive what files are Old based on modified date and remove them.

    Here is simple VB script that looks for the folder name and get file name,Size and modifieddate. If the Despooler is receiving any files from its parent, you get current date.

    Set fso = CreateObject("Scripting.FileSystemObject")
    Set objinputfile=fso.OpenTextFile("C:\Scripts\Servers.txt",1,True)
    Set objoutputfile=fso.OpenTextFile("C:\Scripts\Results.csv",2,True)
    Do While Not objinputfile.AtEndOfStream
    strcomputer=objinputfile.ReadLine
    Set recive = fso.GetFolder("\\" & strComputer & "\Driveletter$\SCCM\inboxes\despoolr.box\receive")
    Set colFiles = recive.Files
    For Each objFile in colFiles

    objoutputfile.WriteLine strComputer & vbTab & objFile.Name & vbTab & objFile.size & vbTab & objFile.DateLastModified

    Next
    loop
    msgbox("done")

    Note : If you have sccm installed on different Drives with different folder names without unique ,this script may not be helpful to you.

    Provide all the site names to servers.txt and results will be piped to results.csv file.

    Once you get the results,you can sort it with File Size and Modifieddate to take further action.

    I would prefer to delete the files from receive folder older than month.

    Here you go with the script to delete files from despoolr.box\receive older than 30 days:

     

    Set fso = CreateObject("Scripting.FileSystemObject")
    Set objinputfile=fso.OpenTextFile("C:\Scripts\desplooer-servers.txt",1,True)
    Set objoutputfile=fso.OpenTextFile("C:\Scripts\despooler-results.csv",2,True)
    Do While Not objinputfile.AtEndOfStream
    strcomputer=objinputfile.ReadLine

    Set objWMIService = GetObject("winmgmts:\\" & strComputer)
    If Err.Number <> 0 Then
    objoutputfile.WriteLine (strcomputer & " is not Up or problem in connecting to WMI")
    Err.Clear
    Else
    strDays= 30
    Set recive = fso.GetFolder("\\" & strComputer & "\f$\SMS\inboxes\despoolr.box\receive")
    Set colFiles = recive.Files
    For Each objFile in colFiles
    If DateDiff("d", objFile.DateLastModified, Date) > strDays Then
    fso.DeleteFile(objFile)
    objoutputfile.WriteLine strComputer & vbTab & "Deleted"
    end if

    Next
    end if
    loop
    msgbox("done")

    Until then !

    Backlogs in Desplooer.Box\Receive Clean up SCCM inbox Backlogs configuration Manager Delete backlogs from Desplooer.Box Desplooer.Box\Receive Despooler component SCCM 2007 VB script to delete backlogs
    Share. Twitter LinkedIn Email Facebook Reddit

    Related Posts

    Migrate Microsoft 365 Updates from SCCM/MECM to Intune for Co-Managed Devices

    February 11, 9:50 pm

    How to detect the source of registry key modifications on windows devices – Intune

    November 21, 8:49 pm

    Identifying devices managed by Intune but not reporting to WUfB using KQL

    November 09, 10:28 am

    1 Comment

    1. Pingback: SCCM inboxes despoolr.box receive taking too much disk space - Sharing IT solutions one person at a time

    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-2024 Eswar Koneti, All rights reserved.

    Type above and press Enter to search. Press Esc to cancel.