Home > Infrastructure > Purge / Delete corrupted or Un-needed patches on WSUS Server

Purge / Delete corrupted or Un-needed patches on WSUS Server

If you want to purge the downloaded patches on WSUS Server to cleanup / delete unneeded content, then you have to use the following:

 

Download the MS WSUS server diagnostic tool on the MSWSUS site here

 

 

Use command line

WsusDebugTool.exe /Tool:PurgeUnneededFiles

 

What this does is purges all update files where all the updates are marked as DECLINED. So to make sure the files get deleted, make sure the update is declined first.

You have to DECLINE anything you want deleted, then run this tool.

WSUS Debug Tool: Run PurgeUnneededFiles command to Purge unneeded content. This command deletes all files not needed on the WSUS server.

 

Then use WSUSutil.exe command line 

 

Stop the- World Wide Web Publishing Service

WSUSUTIL.exe Deleteunneededrevisions

WSUSUTIL.exe Reset

WSUSUTIL.exe Removeinactiveapprovals

Start the- World Wide Web Publishing Service

 

Wsusutil.exe located in C:\Program Files\Update Services\Tools>wsusutil.exe

 

IMPORTANT

The option “Download update files to this server only when updates are approved” must be checked / selected or else, it will re-download those “not needed” updates, during the next sychronization schedule.

Open WSUSAdmin Console – Click on Options – Click on Synchronization Options – Scroll down to Update Files and Languages Section – Click on Advanced – Click OK – Select “Download update files to this server only when updates are approved” – Click OK and save settings.

Advertisements
  1. Bryce
    December 4, 2012 at 8:23 pm

    WSUSUtil.exe has since changed, and there is no Deleteunneededrevisions command.

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: