That error code means ERROR_INSTALL_FAILURE.
Yeah, not helpful.
However, when your updates start failing it is usually a sign that your Windows installation is corrupted.
Specifically, Windows component store which resides in C:\Windows\WinSXS (side-by-side assemblies).
That folder contains system files which are hard-linked into various other system folders. When they need to be updated Windows Update downloads a differential patch file so for example if it has to update kernel32.dll version 1.2.3.0 to 1.2.3.1 it will apply the patch to the original file to create a new file which will be stored in its own folder. Then the hardlink to the old file in C:\Windows\System32 will be removed and new file will be linked in its place. Sheduled maintenance will clean up the accumulated files periodically so that Windows Update doesn't slow to a crawl.
However, if the original file is missing or corrupted in your Windows image then the patch can't be applied and the whole update fails to install.
To troubleshoot those failures first thing to do is to run:
Code:
dism /online /cleanup-image /scanhealth
That will tell you the state of your component store. Standard response is "No component store corruption detected" (in which case there might be the issue with the update itself).
However, if you get "Component store is repairable", then you should try to fix it before attempting any further updates. To do so, you can try:
Code:
dism /online /cleanup-image /restorehealth
If that doesn't work, you can also try this:
But if that doesn't manage to repair it then the only way is to do the manual fixing. For that you will have to consult the CBS log located in:
Code:
C:\Windows\Logs\CBS\CBS.log
After trying to restore health using dism tool try searching the CBS log for the text "error" from the end of the file backwards. Usually some system file will be missing and restoring it will require that you get the installation ISO, mount install.wim and extract the original file from there or copy exact file version from some other PC running the same Windows version.
Once you have the file re-run the scan health command and if it reports no component store corruption the next step is:
Code:
dism /online /cleanup-image /startcomponentcleanup /resetbase
That will force the maintenance and remove all superseeded files then reset the image base to the newest file versions so the previously installed updates can't be removed anymore which will greatly speedup the future updates.
Once that completes, run disk cleanup (cleanmgr), then trim the drive (dfrgui) and you are good to install the updates again.
Note that if you get the "Component store is corrupted" instead of "Component store is repairable" you shouldn't waste time but instead just backup your stuff and reinstall Windows.
TL;DR -- update installation failures are very rarely fault of the update itself.
Hope it helps.