Quantcast
Channel: WSUS forum
Viewing all articles
Browse latest Browse all 12874

WSUS Best practice for cleanup order?

$
0
0

Hi All,

I have a Win 2012 WSUS install that initially grew large and the Server Cleanup Wizard would fail when running all of the available options together. I believe I have worked out the best order to run the cleanup options from a GUI:

  1. Expired updates & Superseded updates
  2. Unused updates and update revisions
  3. Unneeded update files

Additionally to this I routinely decline 'superseded updates' and 'superseded updates that also supersede an update'. Note I wasn't running the 'Computers not contacting the server' option as I currently only have 30 machines connected. So now I have a healthy running system.

I'm now looking at having a large influx of connected devices and as such will start using the 'Computers not contacting the server' option. I am looking to leverage Powershell to automate the cleanup action and schedule it to occur before the next synchronisation. Powershell offers an extra option (CompressUpdates) to compact the database.

I'm not sure if this did run or not when using the GUI Server Cleanup Wizard and if so under what guise?

So I am thinking the logical order would now be:

  1. Get-WsusServer | Invoke-WsusServerCleanup -CleanupObsoleteComputers
  2. Get-WsusServer | Invoke-WsusServerCleanup -DeclineSupersededUpdates -DeclineExpiredUpdates
  3. Get-WsusServer | Invoke-WsusServerCleanup -CleanupObsoleteUpdates
  4. Get-WsusServer | Invoke-WsusServerCleanup -CleanupUnneededContentFiles
  5. Get-WsusServer | Invoke-WsusServerCleanup -CompressUpdatese:

This way it gets rid of any clients it doesn't need to track anymore -> declines updates that it can -> deletes obsolete updates -> removes physical files -> compresses the newly cut down database.

Would you agree or is there a difference of opinion out there? Please give reasoning.

FYI - My WSUS is servicing XP/7/8/2012 clients just in case that makes any difference.

I did search regarding this but nothing answered in regards to using Powershell options. There was a training video link that Lawrence Garvin posted but it no longer works, not sure if that may have contained the answers.

Kind Regards


Viewing all articles
Browse latest Browse all 12874

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>