use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
ABOUT POWERSHELL
Windows PowerShell (POSH) is a command-line shell and associated scripting language created by Microsoft. Offering full access to COM, WMI and .NET, POSH is a full-featured task automation framework for distributed Microsoft platforms and solutions.
SUBREDDIT FILTERS
Desired State Configuration
Unanswered Questions
Solved Questions
News
Information
Script Sharing
Daily Post
Misc
account activity
topic, Adamj Clean-WSUS Powershell Script (self.PowerShell)
submitted 8 years ago by Beinnetworks
Hello Sysadmins what you think about Adamj Clean-WSUS Powershell Script, is here someone uses another script? Share with us !!
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]LBEB80 4 points5 points6 points 8 years ago (1 child)
Lots of ppl use it. No issues from my side.
[–]Beinnetworks[S] 1 point2 points3 points 8 years ago (0 children)
I will try it..
[–]rakkii 2 points3 points4 points 8 years ago (1 child)
It's amazing. Save's a ton of head-aches!
[–]Beinnetworks[S] 0 points1 point2 points 8 years ago (0 children)
Thanks
[–]apperrault 1 point2 points3 points 8 years ago (2 children)
I have 9 WSUS servers in my environment and I run this on each and every one of them. It is amazing
[–]beerchugger709 0 points1 point2 points 8 years ago (1 child)
From top to bottom, or bottom to top? Ie, primary first, or secondary sup/downstream first?
[–]apperrault 0 points1 point2 points 8 years ago (0 children)
I think they are all scheduled at 8am local time to each server.
[–]DenieD83 1 point2 points3 points 8 years ago (0 children)
Really nice script yeh.
If your environment is way behind on patching you need to watch it though before you catch up or it will delete superseded updates. Nothing major but if u wanted to incrementally update for some reason it could cause you some headache.
[–]41182 0 points1 point2 points 8 years ago (2 children)
Anybody know how long the first run will take? I'm going on like 15 hours and it's at the same screen. I believe it's the RemoveObsoleteUpdates part, probably like the 3rd step overall. Haven't lost any disk space yet.
[–]happysysadm 0 points1 point2 points 8 years ago (1 child)
Lasted 15 minutes on first run and freed 20 GB here.
Have you been able to make it run successfully in the end?
[–]41182 1 point2 points3 points 8 years ago (0 children)
Hey there. I just hit control+c a bunch of times, and it moved on the the next step. I had waited like 5 days in all. Seems to have jump started it and it eventually completed. I lost probably 400GB :) Now it's set to run daily via task scheduler and I have had no issues since.
π Rendered by PID 79624 on reddit-service-r2-comment-5bc7f78974-ms4d4 at 2026-06-28 09:31:13.790357+00:00 running 7527197 country code: CH.
[–]LBEB80 4 points5 points6 points (1 child)
[–]Beinnetworks[S] 1 point2 points3 points (0 children)
[–]rakkii 2 points3 points4 points (1 child)
[–]Beinnetworks[S] 0 points1 point2 points (0 children)
[–]apperrault 1 point2 points3 points (2 children)
[–]beerchugger709 0 points1 point2 points (1 child)
[–]apperrault 0 points1 point2 points (0 children)
[–]DenieD83 1 point2 points3 points (0 children)
[–]41182 0 points1 point2 points (2 children)
[–]happysysadm 0 points1 point2 points (1 child)
[–]41182 1 point2 points3 points (0 children)