Windows server 2016/2019 Updates stuck
Use this when you server is having problems with stuck updates, or the update install failed and and keeps failing.
this shuld remove it and force the server to check again for new updates
1) Reboot the server first
2) Start a commandpromt (cmd) as Administrator
3) Run the following commands:
net stop wuauserv
net stop cryptSvc
net stop bits
net stop msiserver
del /f /q “%ALLUSERSPROFILE%Application DataMicrosoftNetworkDownloaderqmgr*.dat”
del /f /s /q %SystemRoot%SoftwareDistribution*.*
del /f /s /q %SystemRoot%system32catroot2*.*
del /f /q %SystemRoot%WindowsUpdate.log
net start wuauserv
net start cryptSvc
net start bits
net start msiserver
4) Run Windows updates again, this will clear the Windows Update cache and the automatic updates should work again.