100% working method "Computer restarted unexpectedly" in Windows 10

Who I am
Philippe Gloaguen
@philippegloaguen
SOURCES CONSULTED:

support.microsoft.com

Author and references

11 December 2017 For Management

If you have received the message “Your computer has restarted unexpectedly or an unexpected error has occurred. … To install Windows, click “OK” to restart your computer and then restart the installation “while installing or updating, you're not alone. In this post we will try to solve the problem by testing various working methods.

Solution 1: use the registry

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



1 - On the screen, simply press Shift + F10. A black Command Prompt window will appear on the screen.

2 - Write regedit in it.

3 - Once the registry editor window appears, simply find the following location using the menu on the left.

  • HKEY_LOCAL_MACHINE
  • SYSTEM
  • Setting
  • Condition
  • ChildCompletion

4 - On the right side, locate setup.exe.

5 - Double click on it.

6 - Now, make sure the value data is set to 3.

If it's not 3, change it to 3.

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

Fix 2 - Perform automatic startup / repair

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

1 - Insert the Windows 10 boot device used for installation.

2 - Press any key to continue.

3 - In the screen shown below, simply choose to repair your computer.

4 - When asked to choose an option on the next screen, simply click on Troubleshoot.


5 - Next, click on the Advanced option.


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

Solution 3: Format your hard drive

Warning: This method will remove all your data including files and settings from your Windows 10 PC.


1. Just press Shift + F10 on your keyboard to open the on-screen Command Prompt window.

2. Now, just type the below-given commands one by one and keep pressing the Enter key to execute them.

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


Note: In the third step, select the command from volume 1 because the window operating system is installed on volume 1. If the window is mounted on another volume, select only that volume.

3. Type exit and press Enter to exit the Command Prompt window.

4. Simply restart your computer

5. Now try installing Windows again.

Solution 4: Check the hard drive cables

Sometimes the error stating “The computer restarted unexpectedly or encountered an unexpected error loop” occurs due to a bad connection through the hard drive cables. Check the cable that connects the hard drive to the motherboard and try to repair it again. It solved the problem in most cases like this.

add a comment of 100% working method "Computer restarted unexpectedly" in Windows 10
Comment sent successfully! We will review it in the next few hours.