Windows Server 2012 R2 randomly hangs, error code 0xc000021a [boot loop]

Thor El Poderoso 51 Reputation points
2022-05-23T13:49:17.287+00:00

Operations carried out:

  • Boot to Safe Made [just reboots with 0xc000021a]
  • Boot to Safe Made with networking [just reboots with 0xc000021a]
  • Boot to Safe Made with Command Prompt [just reboots with 0xc000021a]
    • Disable Automatic Restart after Error [just reboots with 0xc000021a]
    • Boot to Last Known Good Configuration [just reboots with 0xc000021a]
  • Disable driver signature enforcement

• I deleted C:\windows\winsxs\pending.xml [GOOD]
• Ran dism.exe /image:C:\ /cleanup-image /revertpendingactions [GOOD]
• Ran sfc /scannow /offbootdir=C:\ /offwindir=C:\Windows [GOOD]
* Ran chkdsk c: /r [GOOD]
* Boot [just reboots with 0xc000021a]

  • Ran: bootrec /fixmbr [GOOD]
  • Ran: bootrec /fixboot [GOOD]
  • Ran: bootrec /RebuildBcd with attrib bcd -s -h -r // ren c:\boot\bcd bcd.old // bcdedit /export C:\BCD_Backup [GOOD]
  • Restart server with 0xc000021a

Sometimes I get the screen (Preparing Automatic Repair) but it does nothing.

I can't perform an "over-install" because it gives me this error: The Computer Started using the Windows Installation Media

I restore C:\Windows\System32\config\RegBack to C:\Windows\System32\config but reboots with 0xc000021a

Can you think of something to raise the server?

Windows for business Windows Server User experience PowerShell
Windows for business Windows Server User experience Other
{count} vote

1 answer

Sort by: Most helpful
  1. Leila Kong 3,706 Reputation points
    2022-06-02T03:24:19.497+00:00

    Hello @Thor El Poderoso ,

    Thanks for your query.

    Error 0xc000021a is commonly known to appear after Windows fails to install a new Windows Update, in most cases the update will keep failing and you will be stuck in a endless loop of restarting. If you can’t reach Safe Mode then start Windows Recovery Environment: Boot into Windows RE, You’ ll then need to start an Elevated Command Prompt.

    Reference:
    https://windowsinstructed.com/0xc000021a-pc-ran-into-problem-and-needs-to-restart/
    https://neosmart.net/wiki/0xc000021a/

    Best regards,
    Leila

    ----------

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.