Home > Computer Tutorials > Troubleshooting > How to fix 'The Computer restarted unexpectedly or encountered an unexpected error' in Windows?

How to fix 'The Computer restarted unexpectedly or encountered an unexpected error' in Windows?

DDD
Release: 2024-11-29 21:00:06
Original
216 people have browsed it

“Computer restarted unexpectedly or encountered an unexpected error” message is an irritating message that usually pops up while installing or setting up Windows. Most of the time, the error interrupts the process, and your system ends up stuck in a loop where it continuously reboots or shows the same error. It may be encountered on any version of Windows, especially when one tries to install a fresh version of Windows or upgrades a previous version to a new one.

“Computer restarted unexpectedly or encountered an unexpected error” is commonly tied to issues within the setup process itself. These could include corrupted installation files, interruptions during the setup, or even incorrect configuration settings that the system fails to resolve on its own.

While it is not exclusive to any specific hardware or system configuration, the error usually indicates that Windows encountered a situation it couldn't automatically fix during installation.

The causes behind this error are varied, though they are generally related to the installation environment or the configuration of system files. Corrupt installation media, such as a damaged USB or ISO file, is a frequent culprit. Similarly, power interruptions or improperly formatted drives can disrupt the setup process, leading to this issue.

In some cases, changes to the system registry or errors within critical files required during setup may cause the system to restart repeatedly. These causes are often technical in nature and may not always provide clear indications of what went wrong, which makes resolving the problem a priority.

Fixing this issue typically involves addressing the underlying problems that interfere with the Windows installation or setup. This can include modifying system settings, ensuring the installation media is in good condition, or addressing registry errors that may be contributing to the problem. You will find detailed, step-by-step instructions to resolve this error in the next section of the article.

To automatically fix underlying Windows issues, consider using the FortectMac Washing Machine X9 PC repair tool, which can help streamline the repair process and ensure system stability.

How to fix 'The Computer restarted unexpectedly or encountered an unexpected error' in Windows?

Fix 1. Check the installation media

Faulty or corrupt installation media is one of the most common causes of this error. Ensuring the media is properly created can resolve setup interruptions.

  • Insert the installation USB or DVD into another working computer.
  • Verify the files on the media using File Explorer.
  • Recreate the installation media using the Microsoft Media Creation Tool if needed.
  • Insert the updated media into your computer and restart the installation.

Fix 2. Disconnect unnecessary peripherals

External devices can interfere with the installation process if they conflict with drivers or use excessive resources.

  • Disconnect all non-essential devices such as printers, USB drives, and external hard drives.
  • Restart the computer and attempt the installation again.

Fix 3. Modify the system registry

Incorrect registry entries during installation can trigger this error, so adjusting these settings may help resolve it.

  • When the error screen appears, press Shift F10 to open the Command Prompt.
  • Type regedit and press Enter to open the Registry Editor.
  • Navigate to the following location:
    HKEY_LOCAL_MACHINESYSTEMSetupStatusChildCompletion
  • Double-click on setup.exe and set its value to 3.
  • Close the Registry Editor and restart your computer.

How to fix 'The Computer restarted unexpectedly or encountered an unexpected error' in Windows?

Fix 4. Format the installation drive

Formatting the drive ensures no corrupt files interfere with the installation process.

  • Boot into the installation media and choose the Custom installation option.
  • Select the target drive and click on Format.
  • Proceed with the installation once formatting is complete.

How to fix 'The Computer restarted unexpectedly or encountered an unexpected error' in Windows?

Fix 5. Perform a clean installation

If previous installations failed or were interrupted, performing a clean installation can help bypass errors caused by leftover files.

  • Boot into the installation media and choose Install Now.
  • When prompted, select Custom installation.
  • Delete existing partitions and create a new one for the installation.

How to fix 'The Computer restarted unexpectedly or encountered an unexpected error' in Windows?

Fix 6. Run the Windows Memory Diagnostic tool

Faulty RAM can cause unexpected restarts during setup, so testing the memory for errors may help identify hardware issues.

  • Type Windows Memory Diagnostic in Windows search and press Enter.
  • Select Windows Memory Diagnostics result.
  • Click Restart now and check for problems (recommended) (note that your PC will restart immediately).The
  • A memory test will run during startup and display any detected errors – this might take a while.
  • Replace or repair faulty RAM module(s) if errors are found.

How to fix 'The Computer restarted unexpectedly or encountered an unexpected error' in Windows?

Fix 7. Update your BIOS or UEFI firmware

Outdated firmware can cause compatibility issues during Windows setup. Updating it ensures the system runs smoothly with the installation process.

  • Check your motherboard manufacturer's website for the latest firmware.
  • Download the firmware update file and follow the provided instructions.
  • Restart your computer and retry the installation.

How to fix 'The Computer restarted unexpectedly or encountered an unexpected error' in Windows?

The above is the detailed content of How to fix 'The Computer restarted unexpectedly or encountered an unexpected error' in Windows?. For more information, please follow other related articles on the PHP Chinese website!

source:ugetfix.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template