Windows OS Hub
  • Windows
    • Windows 11
    • Windows Server 2022
    • Windows 10
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
  • PowerShell
  • Linux
  • Home
  • About

Windows OS Hub

  • Windows
    • Windows 11
    • Windows Server 2022
    • Windows 10
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
  • PowerShell
  • Linux

 Windows OS Hub / Windows 10 / Disable Automatic Restart on System Failure in Windows 10/11

April 21, 2022 Windows 10Windows 11Windows Server 2019

Disable Automatic Restart on System Failure in Windows 10/11

Windows has a built-in feature that automatically restarts the operating system in the event of a system failure. This option is enabled by default and allows Windows to automatically restart when a stop error (BSOD) occurs. At the same time, Windows creates a minidump that you can analyze with WinDbg or BlueScreenView. Besides the memory dump, the BSOD screen also shows an error code that is sometimes enough to detect an issue. However, a user is not always able to see the error code since the computer restarts too quickly. In this article, we’ll show you how to enable/disable Automatic Restart on System Failure in Windows 10 and 11.

There are several ways to enable/disable automatic Windows restart on failures:

  • Through the computer properties GUI. Run the command: SystemPropertiesAdvanced.exe. Go to the Advanced tab -> click o Tratup and Recovery Settings -> uncheck the Automatic Restart option in the System Failure section; disable automatic restart on system failure on windows 11
  • You can disable automatic restart via the AutoReboot (REG_DWORD) registry parameter under the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CrashControl. You can change the value manually using regedit.exe or with the command prompt. To disable computer automatic restart, set the value to 0:
    reg add “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CrashControl” /v AutoReboot /t REG_DWORD /d 0 /f
    AutoReboot registry option under CrashControl key
  • You can use the wmic tool to disable Windows restart on failures: wmic RecoverOS set AutoReboot = False
    wmic RecoverOS disable autoreboot
To enable automatic restart on BSOD errors, use:
wmic RecoverOS set AutoReboot = True

If you want to disable automatic restart only once (at the next computer boot), restart your computer in the advanced startup mode (using the shutdown command: shutdown /r /o /f /t 0, or click Restart in the Start menu while holding down the Shift key).

restart windows with shift key

Select Troubleshoot.

Troubleshoot option on windows recovery environment

Then select Advanced options -> Startup Settings -> Restart.

windows startup settings

After the restart, press F9 or 9 in the Startup Settings to boot the computer with Disable automatic restart after failure option.

safe mode: Disable automatic restart after failure

If your Windows has entered an endless reboot loop, you can disable automatic restart in recovery mode. To access this mode, you must interrupt Windows boot by pressing the Power button three times in a row.

Then Windows tries to boot from the WinRE recovery image in the automatic repair mode (Preparing Automatic Repair).

preparing automatic repair

In this mode, select Advanced options -> Startup Settings -> Restart -> press F9 to boot Windows with automatic restart on failures disabled.

restart computer

If you want to disable restart on failures for an offline Windows image, boot from your Windows installation media and edit the ..\Windows\System32\Config\System registry file. Change the value of the AutoReboot parameter in the HKLM\SYSTEM\CurrentControlSet\Control\CrashControl registry key to 0 and save the registry file to disk.

You can find an example of how to edit the offline Windows registry in the article “The computer restarted unexpectedly”.

0 comment
1
Facebook Twitter Google + Pinterest
previous post
How to Run GPO Logon Script Only Once
next post
Get a List of Mailboxes a User Has Access to in Exchange/Microsoft 365

Related Reading

Map a Network Drive over SSH (SSHFS) in...

May 13, 2025

How to Cancel Windows Update Pending Restart Loop

May 6, 2025

View Windows Update History with PowerShell (CMD)

April 30, 2025

Change BIOS from Legacy to UEFI without Reinstalling...

April 21, 2025

Remove ‘Your License isn’t Genuine’ Banner in MS...

April 21, 2025

Leave a Comment Cancel Reply

join us telegram channel https://t.me/woshub
Join WindowsHub Telegram channel to get the latest updates!

Categories

  • Active Directory
  • Group Policies
  • Exchange Server
  • Microsoft 365
  • Azure
  • Windows 11
  • Windows 10
  • Windows Server 2022
  • Windows Server 2019
  • Windows Server 2016
  • PowerShell
  • VMware
  • Hyper-V
  • Linux
  • MS Office

Recent Posts

  • Cannot Install Network Adapter Drivers on Windows Server

    April 29, 2025
  • Change BIOS from Legacy to UEFI without Reinstalling Windows

    April 21, 2025
  • How to Prefer IPv4 over IPv6 in Windows Networks

    April 9, 2025
  • Load Drivers from WinPE or Recovery CMD

    March 26, 2025
  • How to Block Common (Weak) Passwords in Active Directory

    March 25, 2025
  • Fix: The referenced assembly could not be found error (0x80073701) on Windows

    March 17, 2025
  • Exclude a Specific User or Computer from Group Policy

    March 12, 2025
  • AD Domain Join: Computer Account Re-use Blocked

    March 11, 2025
  • How to Write Logs to the Windows Event Viewer from PowerShell/CMD

    March 3, 2025
  • How to Hide (Block) a Specific Windows Update

    February 25, 2025

Follow us

  • Facebook
  • Twitter
  • Telegram
Popular Posts
  • How to Allow Multiple RDP Sessions on Windows 10 and 11
  • How to Repair EFI/GPT Bootloader on Windows 10 or 11
  • How to Restore Deleted EFI System Partition in Windows
  • Network Computers are not Showing Up in Windows 10/11
  • How to Run Program without Admin Privileges and Bypass UAC Prompt
  • Fix: BSOD Error 0x0000007B (INACCESSABLE_BOOT_DEVICE) on Windows
  • Install and Manage Windows Updates with PowerShell (PSWindowsUpdate)
Footer Logo

@2014 - 2024 - Windows OS Hub. All about operating systems for sysadmins


Back To Top