Today I came across a Windows 2012 Server where Windows Update was not working. The server would go to install the updates get about 90% through and then error. On inspection of the WindowsUpdate.log file located in C:\windows. There was the error below :-
In order to resolve the problem I ran the following lines from an elevated command prompt :
fsutil resource setautoreset true C:\
DISM /online /Cleanup-Image /restorehealth
This command will sit at 20% for ages. Do not stop this process and let it complete. It can take a while to complete.
Once complete you should be good to go 🙂