When Windows encounters a serious error, such as a Blue Screen of Death (BSOD), the default action is to automatically restart your PC
The automatic restart on system failure can be disabled, which gives you time to read and write down the error so you can begin troubleshooting.
You can disable the automatic restart on system failure option in the Startup and Recovery area of System Properties, accessible via Control Panel.
In newer versions of Windows, the quickest way is to search for control from the Start menu or Run dialog box.
If you’re using an older version of Windows like Windows 7 or before, go to Start > Control Panel.
Choose the System link.
Click on Advanced system settings then Systems Properties tab will open. Select the settings tab.
Select the box next to Automatically restart to remove its check mark.Select OK to save the changes, and then OK again on the System Properties window.
Turn Off Auto-Restart for Updates During Active Hours
You can also enable the “Turn Off Auto-Restart for Updates During Active Hours” option to prevent Windows 10 from automatic restart.
Step 1. Click on the Search button. Type gpedit.msc and press Enter.
Step 2. In the Local Group Policy Editor, go to Computer “Configuration >Administrative Templates > Windows Components > Windows Update”.
Step 3. Double-click on “Turn off auto-restart for updates during active hours”.
Step 4. Select “Enabled”. You can set the whole day as Active Hours. Then click “OK”.
Disable Windows Reboot Task
You can complete the following steps to stop automatic restart on Windows 10 after downloading and installing new updates. However, new updates won’t apply either, and future updates won’t install until you manually reboot your computer.
Step 1. Click the Search button. Search for Task Scheduler.
Step 2. Go to Task Scheduler Library/Microsoft/Windows/Update Orchestrator.
Step 3. On the right side, find “Reboot”, right-click it, and select “Disable”.