MDE Fonts

BLOG · WINDOWS SUPPORT

Windows Won’t Start After an Update: Error 0xC000021A

A Windows update is running, the computer restarts – and instead of the desktop, Automatic Repair appears. It reports that it couldn't repair your PC. On the next start, error 0xC000021A may show up as well.

This stop code means that a critical Windows system process ended unexpectedly. It does not tell you why that happened. On one Windows 11 PC we found signs that an update had only been partly installed: some system files were already newer, others were still from the previous state. A mixed state like this can stop Windows from starting. The error code alone, however, does not prove that an update is always the cause.

Before you repair: protect your data

Before you change anything in Windows, back up important files. If Windows does not start, you can do this with an external drive and the Command Prompt in the recovery environment.

Drive letters there can differ from those in normal Windows. In the example in this article, Windows was on E:, the recovery environment on X: and the external drive on F:. Check the letters on your PC before you copy any commands.

1. Open the recovery Command Prompt

On the Automatic Repair screen, choose:

Advanced options → Troubleshoot → Advanced options → Command Prompt

If BitLocker is turned on, have the recovery key ready.

To list the available drives and their letters, enter:

diskpart
list vol
exit

Find the drive that holds the Windows folder. The examples below use E:.

2. Check the Startup Repair log

Startup Repair writes a log named SrtTrail.txt. It can point to damaged boot files or failed repair attempts.

notepad E:\Windows\System32\Logfiles\Srt\SrtTrail.txt

In the case we examined, the log reported a damaged boot file. Another test for pending update actions showed no error at first. That was misleading: later checks did point to update and repair actions that had not finished.

The message that no network connection could be made was not the cause in this case either. The recovery environment had also tried a cloud recovery.

3. Compare recently changed system files

The following commands sort files by modification date. This shows whether some files are clearly newer than others:

dir E:\Windows\System32\drivers\*.sys /od
dir E:\Windows\System32\*.exe /od
dir E:\Windows\System32\*.dll /od

On the PC we examined, the drivers were still at the level of the previous Patch Tuesday. Core Windows files were also older than a few newer files. poqexec.exe and MRT.exe stood out in particular.

This fit the assumption that the update had stopped while replacing files during startup. Modification dates are only clues, though, and not proof on their own.

4. Roll back pending update actions

Next, we tried to revert pending update actions with DISM:

dism /image:E:\ /cleanup-image /revertpendingactions

A warning appeared that the scratch directory was too small. The recovery environment partly runs in a RAM disk that does not have enough space. So we created a scratch directory on the Windows drive and tried again:

mkdir E:\Scratch
dism /image:E:\ /scratchdir:E:\Scratch /cleanup-image /revertpendingactions

The rollback still failed. DISM reported error 0x800f082f. One possible explanation was that the DISM version in the recovery environment was older than the installed Windows version. We could not confirm this for certain in this case.

5. Run an offline system file check

The System File Checker can also run against a Windows installation that does not start:

sfc /scannow /offbootdir=E:\ /offwindir=E:\Windows

At first, SFC reported that a system repair was pending and needed a restart to finish. An attempt to uninstall the latest quality update from the recovery options was also blocked because of pending update actions.

These were important clues: Windows was still stuck in an unfinished servicing state.

6. Check pending actions: for experienced users only

In the case we examined, we then checked the state of the pending repair actions. The following steps change Windows system files and the registry. They are not a general first step and should only be carried out by experienced users or IT professionals. A backup must exist beforehand.

First, we renamed the file with the pending actions and backed up the COMPONENTS registry hive:

ren E:\Windows\WinSxS\pending.xml pending.xml.bak
copy E:\Windows\System32\config\COMPONENTS E:\Components.bak

Then we loaded and checked the offline registry:

reg load HKLM\TMPCOMP E:\Windows\System32\config\COMPONENTS
reg query HKLM\TMPCOMP

In this case it contained PendingXmlIdentifier and ExecutionState = 0x1. We then removed the pending XML reference and unloaded the registry again:

reg delete HKLM\TMPCOMP /v PendingXmlIdentifier /f
reg unload HKLM\TMPCOMP

If SFC is still blocked by a pending repair, this repair procedure can also reset the ExecutionState value. This is another change to the Windows registry and should not be made without a suitable backup:

reg load HKLM\TMPCOMP E:\Windows\System32\config\COMPONENTS
reg add HKLM\TMPCOMP /v ExecutionState /t REG_DWORD /d 0 /f
reg unload HKLM\TMPCOMP

After that, we ran the offline system file check again:

sfc /scannow /offbootdir=E:\ /offwindir=E:\Windows

This time SFC found and repaired damaged files. Windows still did not start. We then filtered the repair messages out of the CBS log:

findstr /c:"[SR]" X:\Windows\Logs\CBS\CBS.log > E:\sfc.txt
notepad E:\sfc.txt

In this repair procedure the log was on X:. Its location can differ depending on the environment.

7. Make the stop code visible

Automatic Repair can hide a stop code because it keeps starting its own repair attempt. To see the actual error, we mounted the EFI system partition.

Open DiskPart and list the volumes:

diskpart
list vol

Find the small FAT32 volume that belongs to the EFI system partition. In the example it was given the letter S:. Use the number of your own FAT32 volume when you select it:

sel vol NUMBER
assign letter=S
exit

Rewriting the boot files is optional. In this case we used the following command:

bcdboot E:\Windows /s S: /f UEFI

To turn off Automatic Repair for a while and show the stop code on the next start, we disabled recovery in the BCD configuration:

bcdedit /store S:\EFI\Microsoft\Boot\BCD /set {default} recoveryenabled no

After the restart, error 0xC000021A appeared. Turn Automatic Repair back on once the diagnosis is finished:

bcdedit /store S:\EFI\Microsoft\Boot\BCD /set {default} recoveryenabled yes

8. Back up data and choose a recovery option

If there is no backup yet, you can copy user files to an external drive. In the example the external drive was F:. Replace USERNAME with the actual folder name:

robocopy E:\Users\USERNAME F:\Backup /E

These recovery options then remain:

  1. System Restore: In this case, a restore point from before November 8 was the recommended next step.
  2. Reset this PC → Keep my files: Personal files can be kept; installed programs usually have to be set up again.
  3. Reinstall Windows: Installing from Windows 11 installation media without formatting first can move the old installation to Windows.old. Still, back up important data first.

A repair with DISM /RestoreHealth and an older Windows ISO was unlikely to work in this case: the ISO contained older components than the installed Windows and would probably not have been able to replace the newer files.

9. After a successful recovery

Once Windows starts again, check the system files once more and then run the update cleanly:

DISM /Online /Cleanup-Image /RestoreHealth
sfc /scannow

After that, you can start Windows Update again.

Conclusion

Error 0xC000021A is a serious warning sign, but not a complete diagnosis. In this case, the logs, mismatched file versions and the messages about pending actions finally pointed to an update that had only been partly installed.

The basic checks can provide clues. Changes to pending.xml, the registry or the EFI configuration, however, reach deep into Windows. If a business PC or important data is involved, an IT professional should guide the diagnosis before such changes are made.

If your Windows PC no longer starts after an update, we can help with the error analysis and recovery – for businesses in Stuttgart and the surrounding area.

Further information

Your Windows PC won’t start?

We help with error analysis and recovery – for businesses in Stuttgart and the surrounding area.