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.

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.

What's your reaction?
Solved it!
Helped me
Didn't work
Inaccurate Information
About The Author
Yuri Pustjens
Yuri Pustjens
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.
Leave a response
  • Avatar
    February 10, 2016 at 3:54 am

    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?

  • Avatar
    January 31, 2016 at 8:14 pm

    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?

    • Yuri Pustjens
      February 1, 2016 at 4:05 pm

      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

  • Avatar
    Leo Mendes
    January 5, 2016 at 12:55 pm

    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?

  • Avatar
    Vivek Pandya
    December 17, 2015 at 6:32 am

    Thank you for the solution it helped me a lot once again thank you.

  • Avatar
    October 20, 2015 at 5:38 pm

    There should be a backslash after drive and colon. Like “/image:C:\”

  • Avatar
    October 8, 2015 at 5:43 pm

    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?


  • Avatar
    September 13, 2015 at 11:26 pm

    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

  • Avatar
    September 10, 2015 at 2:04 pm

    THNX!! my laptop with W10 works again

  • Avatar
    Paula Hutchings
    July 18, 2015 at 10:22 pm

    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.

  • Avatar
    July 18, 2015 at 1:07 pm

    Thanks for your great instructions. It solved my problem perfectly after a failed Windows 8,1 update!

  • Avatar
    Ginie de Vries
    June 30, 2015 at 4:50 pm

    Will alleen my data on the hard disk be safe? Or will I loose everything on it?

  • Avatar
    Erick D
    May 1, 2015 at 12:29 am

    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?

    • Avatar
      May 6, 2015 at 6:56 am

      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.

  • Avatar
    Pablo Mazza
    March 13, 2015 at 2:37 pm


  • Avatar
    Jack Johannson
    March 4, 2015 at 2:30 pm

    Mega props on this, worked like a charm, saved me from losing all my
    data. Good job.

  • Avatar
    Ryan Patrick
    February 23, 2015 at 9:59 pm

    I get error 2 when I follow this step by step. Very frustrating:( any help?

  • Avatar
    February 16, 2015 at 7:23 pm

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

  • Avatar
    Ultihood Ulti
    February 16, 2015 at 2:23 pm

    I can’t understand a ducking thing

  • Avatar
    Osaid -Y
    February 13, 2015 at 12:18 pm

    didnt work for me ):

  • Avatar
    Calvin Alfredo
    February 7, 2015 at 6:30 am

    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

  • Avatar
    Cláudio Albamonte
    February 7, 2015 at 6:28 am

    Thank you very much! It helped me in my japanese notebook! Liked and
    subscribed! 😀

  • Avatar
    oscar j
    February 5, 2015 at 2:53 pm

    after first command i get error 2, also my command promt has x:\windows\system32>

  • Avatar
    Mike B B
    January 29, 2015 at 7:27 pm

    your my hero, thanks a lot man.

  • Avatar
    Alex Bryant
    January 26, 2015 at 3:21 pm

    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

  • Avatar
    Sunil Kumar
    January 20, 2015 at 12:49 pm

    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?

  • Avatar
    Max xaM
    January 17, 2015 at 8:34 am

    Thank u sooooo much! U are a lifesaver

  • Avatar
    January 16, 2015 at 3:43 pm

    Works perfectly! Thank you, I have been fighting this error for hours.

  • Avatar
    January 15, 2015 at 8:57 pm

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

  • Avatar
    January 15, 2015 at 8:01 am

    Thanks a bunch, this really helped!

  • Avatar
    samson swila
    January 15, 2015 at 3:19 am

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

  • Avatar
    martin tari
    January 14, 2015 at 11:52 am

    I love you man!!! It works!!! Thank you very much!!!

  • Avatar
    January 8, 2015 at 12:07 am

    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?

    • Yuri Pustjens
      January 8, 2015 at 12:16 am


      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.

  • Avatar
    January 7, 2015 at 12:12 am

    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…

  • Avatar
    January 6, 2015 at 8:07 am

    Dude, I did it exactly like you said, but when I rebooted still got the same error. Know what happened?

    • Yuri Pustjens
      January 6, 2015 at 11:00 pm


      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

  • Avatar
    Diego Urbina Lebrón
    October 28, 2014 at 6:56 am

    +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.

  • Avatar
    TT Robinson
    September 29, 2014 at 6:13 am

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

  • Avatar
    July 28, 2014 at 2:49 pm

    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 Response