How to erase all the updates from WSUS to free space and re-download only necessary updates
WSUS Version used to test: 3.0¹ (Windows Server 2008 R2) and 6.2.9200.22167 (Windows 2012 Standard) Even using the Server Cleanup Wizard from WSUS, is normal that along the time the WSUS uses too much space. To solve this problem is possible to use a script that declines updates that are unnecessary, and then, is possible to erase manually all the accumulated updates downloads and redo only the necessary downloads. First, close the WSUS, and stop the WSUS Service: net stop wsusservice Execute this script .ps1 that will decline the unnecessary updates that are superseded. #Change server name and port number and $True if it is on SSL $Computer = $env:COMPUTERNAME [String]$updateServer1 = $Computer [Boolean]$useSecureConnection = $False [Int32]$portNumber = 8530 #If you are using WSUS 3.0, probably your portNumber is 80 # Load .NET assembly [void][reflection.assembly]::LoadWithPartialName("Microsoft.UpdateServices.Administration") $count = 0 # Connect t...