TechBuzzPro

Fix Computer Restarted Unexpectedly Error in Windows 11

· 5 min read · Windows & PC

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

You can fix the "computer restarted unexpectedly" error in Windows 11 by disabling Automatic Restart in the System settings or by modifying the registry to bypass the boot loop. This error typically occurs when Windows encounters a critical system failure (Blue Screen of Death) and is configured to reboot immediately, preventing you from seeing the specific error code. Note that menu labels may differ slightly depending on your specific Windows 11 version, region, or device manufacturer.

What You'll Need

  • A Windows 11 PC experiencing the restart loop.
  • Administrator privileges to access System properties and the Registry Editor.
  • A USB recovery drive or Windows installation media (only if the PC cannot boot into Safe Mode).

Step-by-Step

Method 1: Disable Automatic Restart

This is the safest first step. It stops the computer from rebooting instantly, allowing you to see the actual error message or "Stop Code" which helps identify the root cause.

  1. Press the Windows Key + S and type "Advanced system settings". Select View advanced system settings from the results.
  2. In the System Properties window, ensure you are on the Advanced tab.
  3. Under the Startup and Recovery section, click the Settings button.
  4. In the System failure section, uncheck the box next to Automatically restart.
  5. Click OK, then click OK again on the System Properties window.
  6. Restart your computer. If the error occurs again, the PC will now stay on a blue screen with an error code instead of restarting.

Method 2: Boot into Safe Mode

If your computer restarts before you can reach the desktop, you must enter Safe Mode to perform repairs.

  1. Turn your computer on and off three times using the physical power button to trigger the Automatic Repair screen.
  2. On the Automatic Repair screen, select Advanced options.
  3. Navigate to Troubleshoot > Advanced options > Startup Settings.
  4. Click Restart.
  5. After the PC restarts, press 4 or F4 to start your PC in Safe Mode.

Method 3: Use the Registry Editor (For Boot Loops)

If you are stuck in a loop where the PC restarts immediately upon login, you can disable the restart trigger via the registry. Warning: Incorrectly editing the registry can cause system instability. Proceed with caution.

  1. Press Windows Key + R, type regedit, and press Enter.
  2. Navigate to the following path in the left sidebar: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control
  3. In the right pane, look for a value named CrashOnBSOD.
  4. Double-click CrashOnBSOD and change the Value data to 0.
  5. Click OK and restart your computer.

Method 4: Update Drivers and Windows

Often, this error is caused by an outdated driver conflicting with a Windows update.

  1. Right-click the Start button and select Device Manager.
  2. Look for any devices with a yellow warning triangle. Right-click those devices and select Update driver.
  3. Select Search automatically for drivers.
  4. Go to Settings > Windows Update and click Check for updates to ensure the OS is fully patched.

Common Mistakes

  • Ignoring the Error Code: Many users simply try to bypass the restart without noting the Stop Code (e.g., CRITICAL_PROCESS_DIED). The code is the only way to know if the problem is hardware or software.
  • Editing the Registry blindly: Changing values in the registry without following the exact path can lead to a system that will not boot at all.
  • Installing multiple "PC Repair" tools: Using third-party "registry cleaners" often makes the problem worse by deleting necessary system keys.

Tips

  • Create a System Restore Point: Before making registry changes or updating major drivers, search for "Create a restore point" in the Start menu and create one. This allows you to roll back if the fix fails.
  • Check Event Viewer: After a restart, you can search for "Event Viewer" in the Start menu. Go to Windows Logs > System to find critical errors that happened exactly at the time of the restart.
  • Unplug Peripherals: If the error started after plugging in a new webcam, printer, or USB drive, unplug it before booting to see if the hardware is causing the crash.

Troubleshooting

If the steps above do not stop the unexpected restarts, try these alternatives:

  • Run SFC Scan: Open Command Prompt as an administrator, type sfc /scannow, and press Enter. This repairs corrupted system files.
  • Check for Overheating: Ensure your computer fans are running and vents are clear. Overheating often triggers a hardware-level emergency restart.
  • Perform a System Restore: Go to Control Panel > Recovery > Open System Restore and choose a date before the restarts began.
  • Reset Windows: As a last resort, go to Settings > System > Recovery > Reset this PC. You can choose to keep your files, but all installed apps will be removed.

Frequently Asked Questions

Why does my computer restart without showing a Blue Screen?

By default, Windows 11 is set to automatically restart after a system failure. This hides the Blue Screen of Death (BSOD) and the error code, making it look like a random reboot.

Can a failing power supply cause this error?

Yes. If the power supply unit (PSU) cannot provide consistent voltage, the motherboard will trigger an immediate restart to protect the components from damage.

Will disabling Automatic Restart fix the underlying problem?

No. Disabling the restart only stops the loop and allows you to see the error code. You must use that code to find the actual cause, such as a faulty driver or failing RAM.

Is this error caused by a virus?

While less common, some malware can cause system instability or crash critical processes. Run a full scan with Windows Security to rule this out.

Do I need to reinstall Windows to fix this?

Not necessarily. Most unexpected restarts are caused by driver conflicts or corrupted system files, which can be fixed via Safe Mode, SFC scans, or driver updates.