WSUS | Remove superseeded and declined updates

SenhorDolas 1,296 Reputation points
2021-07-22T14:38:11.193+00:00

Hi
I have a lot of declined and superseded updates in my WSUS db (over 13K).
I have followed the best recommendations from [software-updates-maintenance][1] but the count is not going down for weeks.
I can see updates from back in 2016!!

Does anyone has a good clean up script pls?

[1]: https://video2.skills-academy.com/en-us/mem/configmgr/sum/deploy-use/software-updates-maintenance#:~:text=A%20cleanup%20for%20software%20update,if%20they%27re%20currently%20deployed. but I still have over 13K updates sitting on the DB.
thanks, M

Microsoft Configuration Manager
0 comments No comments
{count} votes

Accepted answer
  1. Sherry Kissinger 4,836 Reputation points
    2021-07-22T17:20:57.917+00:00

    Several years ago; when there was a almost-global "storm" that affected multiple customers, many MVPs and other experts in CM kind of quickly banded together and made multiple methods for preventative maintenance. Some of this is repeated, some of this might be old now: but start here:
    https://www.deploymentresearch.com/fixing-wsus-when-the-best-defense-is-a-good-offense/

    What we use internally are multiple things; I'm not going to claim it's the absolutely perfect and right thing to do; but just saying this is what we've ended up with:
    https://tcsmug.org/blogs/sherry-kissinger/512-wsus-administration-wsuspool-web-config-settings-enforcement-via-configuration-items

    https://tcsmug.org/blogs/jeff-carreon/513-what-s-sup

    But, please read the original at deploymentresearch.com; do your own evaluation of what might be best for your environment.

    2 people found this answer helpful.
    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Amandayou-MSFT 11,141 Reputation points
    2021-07-27T09:23:23.017+00:00

    Hi,

    Haven't heard from you for some time, is Sherry's answer helpful to you? If it is helpful, please accept answer. It will make someone who has the similar issue easily find the answer.

    If you have any other issues, please don't hesitate to let us know.

    Thanks and have a nice day.

    Best regards,
    Amanda

    0 comments No comments

  2. SenhorDolas 1,296 Reputation points
    2021-08-03T15:53:20.307+00:00

    @Sherry Kissinger @Amandayou-MSFT
    Thanks for your input - I am looking for a powershell script and I cannot find anything newer (last 2/3 years) that can help me.
    Do you have anything?

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.