0xc000021a PC Ran into problem and needs to restart

0xc000021a PC Ran into problem and needs to restart

This error 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. This post can possibly help you overcome this problem.

Troubleshooting the Problem

Boot into Safe Mode

You’ll first need to boot into Safe Mode, you can read how to do that in this post: Boot into Windows Safe Mode in Windows 8

Then open an Elevated Command Prompt:

  1. Open Start
  2. Type CMD
  3. Right-click on Commandprompt and choose Run as Administrator

or Boot into Windows Recovery Environment

Or if you can’t reach Safe Mode then start Windows Recovery Environment, you can read how to do that here: Boot into Windows RE

You’ ll then need to start an Elevated Command Prompt:

  1. Click on Troubleshoot
  2. Click on Advanced Options
  3. Click on Command Prompt
  4. Choose your operating system
  5. Choose your account

Entering the command prompt commands

We have now reached Command Prompt, in this Windows we going to enter three commands that will hopefully solve your problems.

  1. Type: “DISM /image:C\ /cleanup-image /revertpendingactions”
  2. Then type: “move C:\Windows\WinSxS\pending.xml C:\Windows\WinSxS\pending.old”

Restart your system and see if it now boots again.

[symple_box color=”red” fade_in=”false” float=”center” text_align=”left” width=””] In some cases the Windows drive will be labelled X. If using C: gives you troubles then try X first.

Hopefully the problem has been solved using these steps.

About the Author

2014, 2015, 2016, 2017 and 2018 Microsoft Most Valuable Professional Windows
Yuri specializes in troubleshooting (crash analysis and devices), system resource utilisation and system performance. He is also very interested in Customer Security. Yuri can be found as Windows Community Moderator and Wiki Author on Microsoft Answers and is active on different communities all across the web.


  1. Well I’m a editor and I was recently rendering a completed edit on my old computer. Even if old my acer laptop has lasted me 5 years and I have had worse problems then this (at least it turns on). While rendering I noticed is was oddly slow compared to how it normally runs. So I canceled the render and let my comp sleep for a day. To come back to a BSOD. I have Windows 10, even though mine was originally vista. I have been through this screen trouble shoot options all day, none working. I have tried all the commands in run and coming back to a error2 or a 87. I went threw the boot options and well you can see where I’m going with this. Any suggestions?

  2. I’m on a reboot Windows 8 upgraded to 10 on a brand new computer… Error 0xc00021a.

    There is no way to get it to boot into Safe Mode because it is not recognizing the F8 key command. I tried to reboot from the disc and the USB and it’s not recognizing anything.

    I have removed all external hardware and rebooted the computer and reattached the monitors, keyboard and mouse and nothing works.

    I hate MS and they should be held accountable for this error. It’s definitely a software issue.

    Any other suggestions?

    1. Hello Zanxnaz

      Please make sure that you have your boot priority set to boot from removable devices first instead of your primary hard disk. Also, most systems have a button to press that gives them Access to the boot menu. Mine is F12, some have F8, try to see if your computer starts which button it says, if it says it at all.

      Which computer brand and model do you have? Perhaps I can give you some instructions

  3. I can’t reach CMD because I can’t even boot my OS.
    How can I do this without being able to boot my system up?

  4. Hey! First off, THANK YOU!! This page is a life saver for me!

    Secondly, there’s a typo in the DISM command. It should read as “dism /image:c:” not “dism /image:c (that second “:” is super important)

    Thirdly, any chance that you know how to get past this issue? This problem occurs EVERY time I reboot my VM. Your solution helps me get it booted up, but I basically have to do this every day. Is there a way to permanently resolve this issue so that I don’t have to revert my pending actions every time?


  5. Hello yuri
    I tried your fix yor this on my window 10 desktop, and after the first command i get “error 2
    Unable to access image
    Make sure that the image path and the windows directory for the image exist and you have read permission on thia folder”
    I am lost at this point. Can you tell me what to do? Thank you in advance
    Michael Marcus

  6. LIFE SAVER! I have been surfing the web, posting to computer forums and stressing over the continuous BSOD, never ending restart, repair computer loop. Now to get my back up imaging back on track again. I am now going to bookmark this site as it has been the only helpful tool to my problem.

  7. So here is what I get on step #1; Server 2012 R2 VM
    the cleanup-image option is unknown.

    Has ANYONE managed to resolve this?

    1. yeah I have. i posted what i did on another page asking about this problem but it sounded confusing last time i read it. a lot of ppl are having different degrees of what works. some are basic and just restart, but mine was the worst kind, nothing worked. I found that you basically have to look up windows updates from the cmd prompt and find the update that did it and delete it. i did mine early in 2015 so i chose to delete them all from that year and it worked. google how to locate and delete updates from cmd prompt for whatever system you have and try that.

  8. Omg after 4hrs of looking for a solution and attempts. I
    finally found one!
    Thank you soooo much literally saved my life! 🙂

  9. Hey can you help me pls when i input the code u typed, it didnt work
    instead it show a message “unable to access the image. make sure the image
    path and the windows directory for the image exist and you have read
    permissions on the folder.”
    help me pls

  10. My server will not connect to the command prompt after clicking on the
    administrator profile and typing in the password. It gets stuck on the
    *checking* symbol and will remain there until I reboot… anybody have

  11. So, after we do this, we still have updates left to install. And if I
    install them, I run into the same issue again. So, we did not really get
    out of the update loop now did we?

    More fundamental question is: why is Windows update making people’s
    computer unbootable?

  12. Thanks dude. This method was the only one that worked for me. What kind of
    update does this…kinda dumb if u ask me.

  13. Yuri, you are the Best, it worked, I inserted the CD, went to Command
    prompt, did the DISM… command and the computer booted

  14. Hi, after we type instruction number 2 into to the command prompt and press enter, do we wait for the command prompt to exit itself or we manually exit it?

    1. Hello,

      It could take some time but a new line should appear where you can enter text as soon as that appears the command has been executed and you can safely close it.

  15. Well, the console says that cleanup-image option is unknown (error 87).
    Then if i type DISM.exe /image:C:\ /cleanup-images /? it gives me a list of options/arguments, starting with the revertpendingactions command. Weird…

    1. Hello

      Please use our ask help system to ask questions the comments are only meant for feedback, however, what message do you get, please describe as best and precise as possible

  16. +Yuri Pustjens Thank you for this post. Just to let you know that this
    will also work with Windows Server 2012 R2. If you have a Cluster of
    Servers running in Windows 2012 R2 and one of the VM’s also running Server
    2012 R2 are not properly shut down due to power failure or human error, and
    the server was in the middle of an update, this kind of error ( 0x000021a )
    can occur. Follow this same steps and verify the letters of your drives.
    Some times you have to change the C:\ for D:\ . When you submit the first
    command, it will take a while for the process to run. Just wait and leave
    it running until it finishes. Then run the second command and you are set.
    When the server restarts, the screen will be black for a while but let it
    run, it is reverting the changes on the background and depending on the
    amount and impact of the updates, the time will vary. Note: You have to
    boot the server from the CD or Image in Hyper-V so when you get to the
    command prompt, you automatically land on X:\Sources and then run the
    commands. Note: You have to boot the server from the CD or Image in
    Hyper-V so when you get to the command prompt, you automatically land on
    X:\Sources and then run the commands.

  17. Leaving the correct spaces is critical. Took me 3 times to get it right. Thankfully it worked, very grateful for the advice.

  18. There should be a colon after the drive letter in the DISM command, as in “DISM /image:C: /cleanup-image /revertpendingactions”. C is the drive where windows is installed.

Leave a Reply

Your email address will not be published. Required fields are marked *