The computer restarted unexpectedly in Windows 10 / 11 (fix)

If you have got the message “The Computer Restarted Unexpectedly or Encountered an Unexpected Error. … To install Windows, click “OK” to restart the computer, and then restart the installation” during installation or upgrade , you are not alone. In this post we will try to fix the problem by trying several working methods.


ADVERTISEMENT

The Computer Restarted Unexpectedly Windows 10

Fix 1 – Using Registry

If you are right now on the error screen, just try this.

1 – On your screen just press Shift + F10 using your keyboard. A black command prompt window will come up on screen.

(Note: – If your Shift+F10 doesn’t work try using the Shift+FN+F10 )

2 – Write regedit on it. Hit Enter key. The registry editor window will open up.

Regedit 1 Min

 

3 – Once the registry editor window appears, just browse to the following location using the left menu.

  • HKEY_LOCAL_MACHINE
  • SYSTEM
  • Setup
  • Status
  • ChildCompletion

Registry Editor

 


ADVERTISEMENT

4 – In the right side, just locate setup.exe.

5 – Double click on it.

6 – Now, just make sure that value data is set to 3.

If its not 3 , then just change it to 3.

Registry Editor Setup 3

 

7 – Just close down the registry editor and finally restart your computer.

Fix 3 – Run Startup / Automatic Repair

Let windows automatically try to repair and fix your problem during your installation. You can try startup / automatic repair.

1 – Insert your windows 10 bootable media used for installation.

2 – Press any key to continue.

3 – On the screen given below, just choose repair your Computer.

 

Repair Your Computer

 

4 – When asked to choose an option in the next screen, just click on Troubleshoot.

2 Continue Troubleshoot Startup Repair Optimized Optimized

 

5 – After that , click on Advanced option.

 

Troubleshoot Reset This Pc Advanced Options Startup Repair Min

 

6 – Now, click on Automatic Repair or Startup Repair.

 

Startup Repair Automatic Repair

 

Fix 3 – Format your hard drive

Warning: This method will delete all your data including files as well as settings on your windows 10 PC.

1.  Just  press Shift + F10 on your keyboard  to open command prompt window on the screen.

2.  Now, just write down the commands given below one by one and keep hitting enter key to execute them.

Diskpart
list volume
select volume 1 
format fs=ntfs quick label=test

 

Volume Seletc Cmd Windows 10

 

Note: In the third step, select volume 1 command is there because the window os is installed in volume 1. If your window is installed in any other volume , select that volume only.

3. Write exit and hit Enter to exit the Command Prompt window.

4. just reboot your computer


ADVERTISEMENT

5. Now, try to install windows again.

Fix 4 – Using BCEDIT command

If you are right now on the error screen, just try this.

1 – On your screen just press Shift + F10 using your keyboard. A black command prompt window will come up on screen.

(Note: – If your Shift+F10 doesn’t work try using the Shift+FN+F10 )

2 – Just run the command pasted below in the cmd window which just popped up.

bcdedit /set {bootmgr} displaybootmenu yes

3 – Now, run the commad given below to shutdown.

4 – Start your PC again.

It will bring the boot manager on the screen. Go to  recovery mode and restart the installation process again.

Fix 5 – Check your hard disk cables

sometimes the error stating “The computer restarted unexpectedly or encountered an unexpected error loop” occurs due to faulty connection via hard disk cables. Check the cable connecting hard drive to motherboard and try to refix it. It fixed the problem in most cases like this.

Fix 6 – Disconnect All USB Devices attached with your PC

Many users suggested that disconnecting the USB devices helped in fixing the issue. Just disconnect whatever be the USB devices you have attached with your system and then try again.

Fix 7 – Update your BIOS

An outdated BIOS also sometimes result in a satiation like this. Just update your BIOS and see if it works as it has worked for some users.

ADVERTISEMENT

17 thoughts on “The computer restarted unexpectedly in Windows 10 / 11 (fix)”

  1. Thanks it really worked…..while upgrading my power got cut…and ups got off…..then the loop started which keeps on restarting ….then as did as mentioned….and if solved the matter. ….again thanks

  2. THIS FREAKING POST! as a mac user trying to troubleshoot a PC, this post is THE ONLY THING THAT WORKED (or understood the problem) Fix #1 for the win!

  3. Thank you so much you are a life saver! I thought my computer was junk but your info save me! Thank you again!!!

  4. If your Shift+F10 doesn’t work try using the Shift+FN+F10 I tried it and then mine worked

  5. Changing the registry value listed above saved my windows 11 installation. Invaluable after I tried just about everything I could think of.

    Many, many thanks and I’m off to enjoy Win 11.

  6. This didn’t work for me, it shows updated to 64% then shuts down and keeps restarting. What should I do now?

  7. so my computer wont stop restarting after try the first method and im not sure what to do,it show a blue screen saying its updated to 64% but then it restarts

Comments are closed.