How to Fix the “Computer Restarted Unexpectedly” Error?

The computer restarted unexpectedly error is a common issue faced during the installation of a new Windows setup. It often causes frustration in the users and they want to solve it as soon as possible. This error is prevalent when updating, upgrading, or reinstalling Windows which signifies an underlying issue that needs prompt attention. 

In this article, we’ll discuss the root causes of such errors, different methods to solve them, and lastly how you can prevent these unexpected errors in the first place. 

So, without further ado, let’s get started!

When Does the “Computer Restarted Unexpectedly” Error Occur? 

The operation of a computer system is a symphony of various components. However, sometimes this can be disrupted, leading to unexpected restarts

Let’s understand the root causes of these errors:

  • Hardware-Related Issues: The unexpected restart loop can be triggered by miscommunication between hardware devices and the computer’s operating system.
  • Power Supply Failures: Fluctuations in the power supply can cause the computer to restart unexpectedly.
  • Overheating: If the computer overheats, it may restart to prevent hardware damage.
  • Component Failures: Faulty hardware can cause an interruption in the OS, leading to a restart loop.
  • Software-Related Issues: Software conflicts and bugs can also result in the computer restarting unexpectedly.
  • Corrupt Files and Drivers Solutions: Damaged system files or drivers can prevent Windows from loading properly.

In the next sections, we’ll discuss the set of key methods to solve this unexpected computer restart issue. 

Methods to Solve the “Computer Restarted Unexpectedly” Issue Error

You’re installing the new Windows on your system, but what happens when your computer decides to take an unexpected restart? 

Fear not, for we’ve assembled a toolkit of solutions to guide you back to smooth sailing. Below, we present a lineup of strategies designed to banish the perplexing “The Computer Restarted Unexpectedly” error in Windows 10.

You need to follow the necessary steps for diagnosing and resolving this unexpected computer restart issue: 

Method 1: Disconnect All Your USB Devices

  • Disconnect USB Devices: Unplug all USB devices, including printers and peripherals.
  • Reason for Disconnecting: Incompatible USB drivers can trigger the error.
  • Reinstall Windows: Try reinstalling Windows 10 after disconnecting USB devices.

Method 2: Check Your Hard Drive Cables

  • Inspect Cables: Ensure motherboard and hard drive cables are properly connected.
  • Caution: Opening the case may void the warranty; consult professionals if under warranty.

Method 3: Use Windows 10 Recovery Drives

  • Create Recovery Drive: Plug in an 8 GB USB and create a Windows 10 Recovery Drive.
  • Boot from Recovery Drive: Boot your PC using the recovery drive.
  • Choose Repair: Navigate to Troubleshoot > Advanced options > Automatic Repair or Start-up Repair.
  • Restart: After the repair process, restart your computer.

Method 4: Registry Editor Modification

  • Initiate Recovery Drive Boot: Initiate the recovery drive boot and access Command Prompt.
  • Registry Editor Access: Enter “regedit” and press Enter to launch the Registry Editor.
  • Path Navigation: Navigate to Computer > HKEY_LOCAL_MACHINE > SYSTEM > Setup > Status > ChildCompletion.
  • Value Modification: Double-click setup.exe, alter the Value data to 3, and confirm by clicking OK.
  • Finalize and Reboot: Exit the Registry Editor and Command Prompt, then proceed to reboot your computer.

Method 5: Update Your BIOS

Update BIOS according to your motherboard manual. Remember, BIOS update is complex; so, ensure proper execution to avoid damage.

Method 6: Format Your Hard Drive

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

  • Press Shift + F10 on your keyboard to open the Command Prompt window.
  • Enter the following commands one by one and press Enter after each:
  • Diskpart
  • list volume
  • select volume 1  (Replace 1 with the volume where Windows is installed)
  • format fs=ntfs quick label=test
  • Type “exit” and press Enter to close the Command Prompt window.
  • Restart your computer.
  • Attempt to install Windows again.

Note: Be cautious while using this method as it will wipe all data on the selected volume. Ensure you have backed up important data before proceeding.

Method 7: Using BCEDIT Command

  • Press Shift + F10 on the error screen to open Command Prompt.
  • Enter the command “bcdedit /set {bootmgr} displaybootmenu yes”.
  • Run the command to shut down your PC.
  • Start your PC again. The boot manager should appear.
  • Select recovery mode and restart the installation process.

By following these steps, you may be able to resolve the “The Computer Restarted Unexpectedly Loop” error in Windows 10.

How Can You Prevent the Computer from this Error?

While the computer restarted unexpectedly error can be a frustrating problem as you can lose all the data that is running. So, taking proactive measures can help prevent its recurrence and ensure a seamless computing experience. 

By adopting the following practices, you can safeguard your system against unexpected restarts:

  • Regular Maintenance and Cleaning: Keeping your computer physically clean and well-ventilated is essential to prevent overheating, which can trigger unexpected restarts. 
  • Update Drivers and Software: Outdated or incompatible drivers and software can contribute to system instability. Regularly update your device drivers, operating system, and applications to ensure they are compatible and functioning correctly.
  • Temperature Monitoring: Install temperature monitoring software to keep an eye on your system’s temperature. If temperatures consistently rise to dangerous levels, consider improving ventilation or investing in better cooling solutions.
  • Regular Backups: Regularly back up your important files and data to prevent loss in case of unexpected restarts or other system issues.


In conclusion, encountering an unexpected computer restart error during a Windows 10 installation can be a frustrating experience. However, the methods explained in this guide should help you diagnose and resolve the issue with relative ease.

Remember, the proactive prevention of system issues can save you from experiencing such errors. Regular software updates, temperature monitoring, and regular backing up of the data are a few of the many preventive measures that you can take.

 Be sure to reach out to professionals if you’re unsure about any of the troubleshooting procedures, and always back up your data to protect it from unexpected incidents. 

Good Luck with your Learning!!

Related Topics:

How to Fix Error 1067: The Process Terminated Unexpectedly

Resolve “syntax error near unexpected token”

An Unexpected Error Is Keeping You From Copying The File

Jerry Richard
Follow me

Was this post helpful?

Thanks for your feedback!

Leave a Comment