This is mostly seen with WSUS but I have run into it from time to time through regular day to day items.
While working on a server today I kept being informed that the Windows Updates were failing. When checking the Windows Update log file I found the error. From there I went about fixing it.
Turns out the junior guys were confused as I said “Ah.” and dropped to a command prompt. That reminded me that sometimes I really need to explain what is going on in my head to others.
This issue is really easy to fix. It usually happens when there is a problem with the installation of an update. In this case I found that the C: drive was in the middle of compressing files and it so happened that one of the folders was the “softwaredistribution” folder where updates are stored to be installed.
Here is what you need to do:
- Open a command prompt. (If you don’t know how please contact a technical support person)
- regsvr32 /u wuaueng.dll
- del C:\WINDOWS\SOFTWAREDISTRIBUTION
- del C:\WINDOWSUPDATE.log (if this tells you that it is in use just go to the next step).
- Regsvr32 wuaueng.dll
- Net start wuauserv
- Wuauclt.exe /resetauthorization /detectnow
There you go, you should be able to request Windows Updates and they will download and install as you expect.