If you’ve ever had a WSUS Server get a little bit out of control you’ll know that running the WSUS Server Cleanup Wizard can solve the problem. Running this wizard is unfortunately a manual process and it can be a long cleanup process as well because the wizard can take hours and hours to run, even over day in extreme cases! Of course it get’s worse when you need to perform the same steps for every WSUS Server you have. Thankfully you can use Windows PowerShell to automate this for you. And that’s a good idea to script this largely because you can run this wizard as a preventative maintenance as well.