0% found this document useful (0 votes)
63 views2 pages

Urtech - ca-SOLVED How To Force A Clean Up of WSUS Data Amp Resolve SERVER NODE RESET Using PowerShell

This document discusses using PowerShell commands to force a clean up of a WSUS server and resolve issues with a "SERVER NODE RESET" error. It provides the PowerShell command to run all clean up tasks at once or individually. It notes that the command must be run as an admin and the WSUS Certificate Server service may need to be started first. Running only some tasks first and then the full command again is suggested if errors occur. Cleaning up a corrupted WSUS database is also addressed.

Uploaded by

Roberto Work R74
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
63 views2 pages

Urtech - ca-SOLVED How To Force A Clean Up of WSUS Data Amp Resolve SERVER NODE RESET Using PowerShell

This document discusses using PowerShell commands to force a clean up of a WSUS server and resolve issues with a "SERVER NODE RESET" error. It provides the PowerShell command to run all clean up tasks at once or individually. It notes that the command must be run as an admin and the WSUS Certificate Server service may need to be started first. Running only some tasks first and then the full command again is suggested if errors occur. Cleaning up a corrupted WSUS database is also addressed.

Uploaded by

Roberto Work R74
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

SOLVED: How To Force a Clean Up of WSUS Data &

Resolve SERVER NODE RESET Using PowerShell


urtech.ca/2016/10/solved-how-to-force-a-clean-up-of-wsus-and-resolve-server-node-reset-using-powershell

Ian Matthews October 20, 2016

Updated: January 2022

If you cannot complete a clean up of your


WSUS server through the WSUS console
because it keeps erroring out with SERVER
NODE RESET, you can hopefully complete
through the following PowerShell command line:

Invoke-WsusServerCleanup -DeclineSupersededUpdates -DeclineExpiredUpdates -


CleanupObsoleteComputers -CleanupObsoleteUpdates -
CleanupUnneededContentFiles -CompressUpdates

If this fails or times out, you can run each of the commands one by one:

Invoke-WsusServerCleanup -CleanupUnneededContentFiles -CompressUpdates


Invoke-WsusServerCleanup -DeclineSupersededUpdates
Invoke-WsusServerCleanup -DeclineExpiredUpdates
Invoke-WsusServerCleanup -CleanupObsoleteComputers
Invoke-WsusServerCleanup -CleanupObsoleteUpdates -CompressUpdates

Whichever command you finish on should include -CompressUpdates because that is


the command which actually deletes the garbage from the database.

If you want to know what the switches are for INVOKE-WSUSSERVERCLEANUP, skim
through THIS Microsoft article.

Note that if your WSUS database is


corrupted or has other issues, you will want
to run WSUS Database cleanup as we
describe HERE.

There are a few notes to this script:

1. You need to run POWERSHELL as an


Admin
.

1/2
2. If you see the following error go to your SERVICES and start WSUS Certificate
Server or just type NET START WSusCertServer
Invoke-WsusServerCleanup : The service cannot be started, either
because it is disabled or because it has no enabled devices associated
with it
.
3. As you can see in the screen shot my first round at this failed. I also had .NET error
the appeared which I mistakenly cleared before reading carefully. Then I shortened
up the script to do less:

Invoke-WsusServerCleanup -CleanupUnneededContentFiles -CompressUpdates

Then I ran the other half of the script:

Invoke-WsusServerCleanup -DeclineSupersededUpdates -DeclineExpiredUpdates -


CleanupObsoleteComputers -CleanupObsoleteUpdates

Then I ran the entire script again, which apparently did nothing. After that I was able to the
WSUS SERVER CLEAN UP WIZARD from the WSUS console without problem.

I found some information on this command HERE and HERE.

Read More

2/2

You might also like