locked
WsusContent RRS feed

  • Question

  • Hi experts

    I am running out of Disk Space on C drive, Wsus Content folder(C:\Program Files (x86)\WSUS\WsusContent) is occupying space,
    How do i clear some of the space

    Wednesday, March 27, 2019 12:45 AM

Answers

  • Hi,
      

    Thank you for posting here.
    To clean up the content of the WsusContent folder, start with the following simple steps:
      

    1. Before you start make sure to disable your Automatic Approval Rule(s).
    2. From Update Files and Languages, make sure that you don’t have Express installation files selected.
    3. Then run Server Cleanup Wizard on the WSUS server.
        

    If the cleaning effect of the above method does not meet your requirements, you can further clean up by referring to the Powershell script provided in the following article: "How To Clean Up WSUS".
    * Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
     

    Hope the above can help you.
     

    Regards,
    Yic

    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    • Marked as answer by ItsMe-Roger Monday, April 8, 2019 8:11 AM
    Wednesday, March 27, 2019 3:12 AM
  • Hi,
      

    Please try resetting the WSUS server and re-downloading all approved updates by following these steps:
    (Note: You may want to execute the procedure below during off hours as your WSUS server will be downloading quite a bit of data.)
      

    1. Correct any settings above or disapprove any unneeded updates.
    2. Close any open WSUS consoles.
    3. Go to Administrative Tools – Services and STOP the Update Services service.
    4. In Windows Explorer browse to the WSUSContent folder. (typically %dir%\WSUSContent)
    5. Delete ALL the files and folders in the WSUSContent folder.
    6. Go to "Administrative Tools" – "Services" and START the "Update Services service".
    7. Open a command prompt and navigate to the folder: "C:\Program Files\Update Services\Tools".
    8. Run the command "WSUSUtil.exe RESET"
      This command tells WSUS to check each update in the database, and verify that the content is present in the WSUSContent folder. As it finds that the content is not present in the folder, it executes a BITS job to download the content from Microsoft. This process takes quite a bit of time and runs in the background.
    9. When the WSUSContent folder is no longer growing, this process is completed.
        

    Hope the above can help you.
      

    Regards,
    Yic

    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    • Marked as answer by ItsMe-Roger Monday, April 8, 2019 8:10 AM
    Friday, March 29, 2019 2:16 AM
  • What you should do when you run out of space on a WSUS Server:

    https://www.ajtek.ca/wsus/what-do-i-do-when-i-run-out-of-space-on-a-wsus-server/


    Adam Marshall, MCSE: Security
    https://www.ajtek.ca
    Microsoft MVP - Windows and Devices for IT

    • Marked as answer by ItsMe-Roger Monday, April 8, 2019 8:11 AM
    Thursday, April 4, 2019 1:38 AM

All replies

  • Hi,
      

    Thank you for posting here.
    To clean up the content of the WsusContent folder, start with the following simple steps:
      

    1. Before you start make sure to disable your Automatic Approval Rule(s).
    2. From Update Files and Languages, make sure that you don’t have Express installation files selected.
    3. Then run Server Cleanup Wizard on the WSUS server.
        

    If the cleaning effect of the above method does not meet your requirements, you can further clean up by referring to the Powershell script provided in the following article: "How To Clean Up WSUS".
    * Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
     

    Hope the above can help you.
     

    Regards,
    Yic

    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    • Marked as answer by ItsMe-Roger Monday, April 8, 2019 8:11 AM
    Wednesday, March 27, 2019 3:12 AM
  • i have used the below syntax , is there any way to clear the space

    PS C:\Windows\system32> Invoke-WsusServerCleanup -DeclineSupersededUpdates -DeclineExpiredUpdates -CleanupObsoleteComputers -CleanupObsoleteUpdates
    Obsolete Updates Deleted:0
    Expired Updates Declined: 0
    Obsolete Updates Deleted:0
    Obsolete Computers Deleted:0 
     

    Thursday, March 28, 2019 11:49 AM
  • Hi,
      

    Please try resetting the WSUS server and re-downloading all approved updates by following these steps:
    (Note: You may want to execute the procedure below during off hours as your WSUS server will be downloading quite a bit of data.)
      

    1. Correct any settings above or disapprove any unneeded updates.
    2. Close any open WSUS consoles.
    3. Go to Administrative Tools – Services and STOP the Update Services service.
    4. In Windows Explorer browse to the WSUSContent folder. (typically %dir%\WSUSContent)
    5. Delete ALL the files and folders in the WSUSContent folder.
    6. Go to "Administrative Tools" – "Services" and START the "Update Services service".
    7. Open a command prompt and navigate to the folder: "C:\Program Files\Update Services\Tools".
    8. Run the command "WSUSUtil.exe RESET"
      This command tells WSUS to check each update in the database, and verify that the content is present in the WSUSContent folder. As it finds that the content is not present in the folder, it executes a BITS job to download the content from Microsoft. This process takes quite a bit of time and runs in the background.
    9. When the WSUSContent folder is no longer growing, this process is completed.
        

    Hope the above can help you.
      

    Regards,
    Yic

    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    • Marked as answer by ItsMe-Roger Monday, April 8, 2019 8:10 AM
    Friday, March 29, 2019 2:16 AM
  • What you should do when you run out of space on a WSUS Server:

    https://www.ajtek.ca/wsus/what-do-i-do-when-i-run-out-of-space-on-a-wsus-server/


    Adam Marshall, MCSE: Security
    https://www.ajtek.ca
    Microsoft MVP - Windows and Devices for IT

    • Marked as answer by ItsMe-Roger Monday, April 8, 2019 8:11 AM
    Thursday, April 4, 2019 1:38 AM
  • Hi,
     

    Any update is welcome here.
    If the issue is resolved, share your solution or find the helpful response "Mark as Answer" to help other community members find the answer.
     

    Thank you for your cooperation, as always.
     

    Regards,
    Yic

    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Monday, April 8, 2019 8:01 AM