How to turn off automatic restart in Windows 11?

Copper Contributor

I frequently have long running tasks that can take days or even weeks running on my Windows 11 Home PC. Because of this, it should not restart without asking me first.


My solution is to disable the windows update service, but I keep forgetting to reenable it and check for updates before starting another long running task. As such, I either never end up getting any updates, or I end up losing progress on a task that has been running for a week+.

1 Reply
You can use Registry Editor:
Press Win + R to open the Run dialog.
Type regedit and press Enter to open the Registry Editor.
Navigate to the following key: HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU
If the AU key doesn't exist, you may need to create it.
Create a new DWORD (32-bit) Value named NoAutoRebootWithLoggedOnUsers if it doesn't already exist.
Set its value to 1.