


How to fix 'The Computer restarted unexpectedly or encountered an unexpected error' in Windows?
“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.
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.
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.
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.
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.
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.
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!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics











KB5055523 update is a cumulative update for Windows 11 version 24H2, released by Microsoft on April 8, 2025, as part of the monthly Patch Tuesday cycle, to offe

Windows update failures are not uncommon, and most users have to struggle with them, most often becoming frustrated when systems fail to install critical patche

Windows updates are a critical part of keeping the operating system stable, secure, and compatible with new software or hardware. They are issued on a regular b

Troubleshooting The Elder Scrolls IV: Oblivion Remastered Launch and Performance Issues Experiencing crashes, black screens, or loading problems with The Elder Scrolls IV: Oblivion Remastered? This guide provides solutions to common technical issues.

Solve the problem of failure of the PC version of "Clair Obscur: Expedition 33" Have you also encountered the problem that the PC version of the "Clair Obscur: Expedition 33" controller does not work properly? Don't worry, you are not alone! This article will provide you with a variety of effective solutions. "Clair Obscur: Expedition 33" has been launched on PlayStation 5, Windows and Xbox Series X/S platforms. This game is an engaging turn-based RPG that emphasizes precise timing. Its uniqueness is the perfect blend of strategic and rapid response. Smooth operation

Windows updates are essential to keep your system up to date, secure, and efficient, adding security patches, bug fixes, and new functionality for Windows 11 us

Solve the UE-Sandfall game crash problem in "Clair Obscur: Expedition 33" "Clair Obscur: Expedition 33" has been widely expected by players after its release, but many players encountered the error of UE-Sandfall crashing and closing when starting the game. This article provides three solutions to help you smooth the game. Method 1: Change the startup options Change the Steam startup options to adjust game performance and graphics settings. Try setting the startup option to "-dx11". Step 1: Open the Steam library, find the game, and right-click to select "Properties". Step 2: Under the General tab, find the Startup Options section.

Windows 11 KB5055528 (released on April 8, 2025) Update detailed explanation and troubleshooting For Windows 11 23H2 users, Microsoft released the KB5055528 update on April 8, 2025. This article describes the improvements to this update and provides a solution to the installation failure. KB5055528 update content: This update brings many improvements and new features to Windows 11 23H2 users: File Explorer: Improved text scaling and improved accessibility to the file opening/save dialog and copy dialog. Settings page: Added "Top Card" function to quickly view processor, memory, storage and G
