To prevent Windows from automatically restarting after updates, configure Windows Update so it does not auto-reboot when someone is signed in.
Use Group Policy/registry-based settings (Windows 10/11):
- Ensure Automatic Updates is set to scheduled install
- Under
HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate\AU, set:-
AuOptions=4(Auto download and schedule the install).
-
- Under
- Block auto-restart when a user is logged on
- In the same key
HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate\AU, enableNoAutoRebootWithLoggedOnUsers. - This prevents automatic restarts when a user is signed in. If a restart is manually scheduled from the update notification, that scheduled time still takes precedence.
- In the same key
- Optionally, control active hours
- Under
HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate:-
SetActiveHours=1to enable active hours. -
ActiveHoursStartandActiveHoursEnd(0–23) to define when restarts are not allowed.
-
- Or set
SetActiveHours=0to disable automatic restart outside active hours.
- Under
These settings reduce or prevent surprise reboots, but if a restart is never allowed, some updates may remain unapplied until a manual reboot is done.
References: