Open Powershell with Admin or CMD with Admin (Press Windows key + X then click Windows Powershell(Admin))
Copy each line of command to Powershell then press enter (one line at a time)
net stop bits
net stop wuauserv
net stop appidsvc
net stop cryptsvc
Del "%ALLUSERSPROFILE%\Application Data\Microsoft\Network\Downloader\*.*"
rmdir %systemroot%\SoftwareDistribution /S /Q
rmdir %systemroot%\system32\catroot2 /S /Q
regsvr32.exe /s atl.dll
regsvr32.exe /s urlmon.dll
regsvr32.exe /s mshtml.dll
netsh winsock reset
netsh winsock reset proxy
net start bits
net start wuauserv
net start appidsvc
net start cryptsvc
After trying all of the steps to several MS Support articles to fix the error code it still hasn’t installed - the articles suggest stopping several services and deleting the update files, it continues to have failed to install 25+ times. Even the OS update in place attempt has not remedied the issue. It tries every couple days...🤷��♂️ I’m out of ideas...
Regarding the instructions above: If you are running PowerShell (which can be detected by the PS letters at the beginning of the command line) the %...% syntax will not work. The easiest way around is to start cmd in that console window by typing cmd[Enter]. Only then you'll be able to run the commands above. There are equivalents for PS, but I don't know them from the top of my head. The same goes for rmdir which is not the same rmdir as in PowerShell, so the /S /Q flags will also work only in cmd. The MS person should've noted that. I hope it helps!