Windows OS Hub
  • Windows Server
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Active Directory Domain Services (AD DS)
    • Group Policies
  • Windows Clients
    • Windows 11
    • Windows 10
    • Windows 8
    • Windows 7
    • Windows XP
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
    • KVM
  • PowerShell
  • Exchange
  • Cloud
    • Azure
    • Microsoft 365
    • Office 365
  • Linux
    • CentOS
    • RHEL
    • Ubuntu
  • Home
  • About

Windows OS Hub

  • Windows Server
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Active Directory Domain Services (AD DS)
    • Group Policies
  • Windows Clients
    • Windows 11
    • Windows 10
    • Windows 8
    • Windows 7
    • Windows XP
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
    • KVM
  • PowerShell
  • Exchange
  • Cloud
    • Azure
    • Microsoft 365
    • Office 365
  • Linux
    • CentOS
    • RHEL
    • Ubuntu

 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

How to Connect VPN Before Windows Logon

November 14, 2023

Using WPAD (Web Proxy Auto-Discovery Protocol) on Windows

November 7, 2023

Zabbix: How to Get Data from PowerShell Scripts

October 27, 2023

Tracking Printer Usage with Windows Event Viewer Logs

October 19, 2023

How to Use Ansible to Manage Windows Machines

September 25, 2023

Leave a Comment Cancel Reply

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

  • How to Connect VPN Before Windows Logon

    November 14, 2023
  • Removing Azure Arc Setup Feature on Windows Server 2022

    November 9, 2023
  • Using WPAD (Web Proxy Auto-Discovery Protocol) on Windows

    November 7, 2023
  • Send Emails with Microsoft Graph API and PowerShell

    November 6, 2023
  • Zabbix: How to Get Data from PowerShell Scripts

    October 27, 2023
  • Tracking Printer Usage with Windows Event Viewer Logs

    October 19, 2023
  • PowerShell: Configure Certificate-Based Authentication for Exchange Online (Azure)

    October 15, 2023
  • Reset Root Password in VMware ESXi

    October 12, 2023
  • How to Query and Change Teams User Presence Status with PowerShell

    October 8, 2023
  • How to Increase Size of Disk Partition in Ubuntu

    October 5, 2023

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
  • Fixing ‘The Network Path Was Not Found’ 0x80070035 Error Code on Windows
Footer Logo

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


Back To Top