To avoid the Windows forcefully rebooting after an automatic update:
Use Local Group Policy Editor to set Configure Automatic Updates enabled.
- Use Local Group Policy Editor to setRun Configure Automatic Updates enabled.
gpedit.msc
- Set No auto-restart with logged on users for scheduled automatic updates enabledNavigate to prevent automatic restart when a user is signed in.Local Computer Policy → Computer Configuration → Administrative Templates → Windows Components → Windows Update
- Alternatively, in Regedit,Enable the
HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate\AU
, setConfigure Automatic Updates policyAuOptions
Set Configure automatic updating to4 - Auto download and schedule the install
and- Enable the No auto-restart with logged on users for scheduled automatic updates policy
Alternatively
You also configure the above options through the registry
Launch regedit.exe
Navigate to
HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate\AU
set:
- AuOptions =
NoAutoRebootWithLoggedOnUsers4
to - NoAutoRebootWithLoggedOnUsers =
1
(i.e., true).
- AuOptions =
N.B. If you manually start the update process, Windows may still reboot while your logged on.
For more information on controlling updates via Group Policy, see Manage additional Windows Update settings.