Wednesday, August 14, 2019

[Solved] Windows Update BSOD

One of my device could not install latest Windows updates. It was always crashing with a BSOD:
ATTEMPTED SWITCH FROM DPC
I spent many hours trying to solve the problem.
  • Running Windows Troubleshoot for Windows Update could repair Windows Update Database but this was not enough.
  • Running the command below did not help either :
    sfc /scannow
  • I tried all steps in this driver easy knowledge post :
    • Memory check
    • Disk check
    • Updating all drivers
    • Full Windows Reset
Manually updating all drivers is fairly easy with drivereasy : the free version lets you download all drivers. Then you just need to manually update drivers with the Device Manager. Just browse to drivereasy AppData folder when selecting whre to look for driver update.

Anyway, all these attempts failed to solve the problem. Running Windows Update after a full reset still crashed with a BSOD.

Other ideas I tried :
  • Retrying with most services and scheduled tasks disabled with msconfig.
  • Download and install windows10.0-kb4507435-x86_05aa394fcfdd3dbc72e2da2f41ae96b30d9496b9.msu
A few weeks later, I tried Window Update again. Windows cumulative update was now KB4512501. No more BSOD but installing updates still failed:
Some update files are missing or have problems.
We'll try to download the upgrade again later. Error code: (0x80073712)
I eventually found out Errors in C:\Windows\Logs\CBS\CBS.log. It seems many manifests were corrupted in WinSxS folder. Then I found and launched the following command (in an elevated shell) :
dism /online /Cleanup-Image /StartComponentCleanup
A couple hours later, I also run this command:
dism /online /Cleanup-Image /RestoreHealth
The first time, this command caused a reboot after a BugCheck. Second attempt succeeded.

In the end, I retried Windows Update and August 19 cumulative update passed successfully.

HTH