Windows OS Hub
  • Windows Server
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2012
    • 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 2012
    • 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 5, 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
0
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 Run Program without Admin Privileges and...

March 24, 2023

Configure Network Settings on Windows with PowerShell: IP...

March 24, 2023

Attaching Host USB Devices to WSL or Hyper-V...

March 20, 2023

Print Screen Key Not Working in Windows

March 17, 2023

Fix: Remote Desktop Services Is Currently Busy

March 15, 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 Run Program without Admin Privileges and Bypass UAC Prompt?

    March 24, 2023
  • Configure Network Settings on Windows with PowerShell: IP Address, DNS, Default Gateway, Static Routes

    March 24, 2023
  • Exchange Offline Address Book Not Updating in Outlook

    March 21, 2023
  • Attaching Host USB Devices to WSL or Hyper-V VM

    March 20, 2023
  • Sending an E-mail to a Microsoft Teams Channel

    March 17, 2023
  • How to Restore Deleted Users in Azure AD (Microsoft 365)?

    March 16, 2023
  • Fix: Remote Desktop Services Is Currently Busy

    March 15, 2023
  • Send-MailMessage: Sending E-mails with PowerShell

    March 14, 2023
  • Clear Cache and Temp Files in User Profiles on Windows (RDS) with PowerShell and GPO

    March 13, 2023
  • Prevent Users from Creating New Groups in Microsoft 365 (Teams/Outlook)

    March 6, 2023

Follow us

woshub.com
  • Facebook
  • Twitter
  • RSS
Popular Posts
  • How to Allow Multiple RDP Sessions in 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?
  • How to Create a Wi-Fi Hotspot on your Windows PC?
  • Updating List of Trusted Root Certificates in Windows
Footer Logo

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


Back To Top