To resolve that, boot up into the Advanced Boot options - usually by tapping F8 as you switch on, although the key combo can vary with make of computer - select Repair your Computer - change/confirm the keyboard and when in the Recovery Environment (RE) select Command Prompt and enter -
c:
fsutil resource setautoreset true %systemdrive% - press Enter
sfc /scannow /offbootdir=C:\ /offwindir=C:\Windows - press Enter
Note the spaces before the forward slashes.
I can't remember if that produces a CBS log, but you can run the sfc /scannow in normal mode afterwards if it reports it is unable to repair some files then redo the findstr cmd.
If the fsutil cmd doesn't do it, also in the RE/Command prompt enter -
dism.exe /image:c:\ /cleanup-image /revertpendingactions
Enter exit to close the cmd window then reboot.
The manual way from the dism cmd if that isn't accepted is again from the RE/Cmd Prompt enter -
c:
cd C:\windows\winsxs
ren pending.xml pending.old
regedit
Highlight HKEY_LOCAL_MACHINE - click on File - Load Hive
When that opens browse to C:\windows\system32
Locate the following folder - C:\windows\system32\config\components and click on to select.
When you are prompted for a name, type offline_components
You will now see the key offline_components - expand the + then locate and delete the following subkeys -
HKLM\Offline Components\AdvancedInstallerNeedResolving
HKLM\Offline Components\PendingXmlIdentifier
Go back to the key Offline_Components - highlight it then go to File menu and select Unload Hive
Close up the registry sections and reboot.
After doing that, so my notes say, run a cmd prompt as an admin and enter -
net stop wuauserv
cd %systemroot%
ren SoftwareDistribution SoftwareDistribution.old
net start wuauserv
That ren cmd will remove your Windows Update history but that will soon repopulate with subsequent updates.
You may want to create a restore point first though before you embark on making changes to the registry.