Specify deadline before auto-restart for update installation
Supported on: Windows Server 2016 through Windows Server 2022, or Windows 10
Registry
HKLM
Software\Policies\Microsoft\Windows\WindowsUpdate Value name: SetAutoRestartDeadline
Enabled: SetAutoRestartDeadline = 1
Disabled: SetAutoRestartDeadline = 0
Options
AutoRestartDeadlinePeriodInDays enum - 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
AutoRestartDeadlinePeriodInDaysForFeatureUpdates enum - 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
Description
Specify the deadline before the PC will automatically restart to apply updates. The deadline can be set 2 to 14 days past the default restart date. The restart may happen inside active hours. If you disable or do not configure this policy, the PC will restart according to the default schedule. Enabling either of the following two policies will override the above policy: 1. No auto-restart with logged on users for scheduled automatic updates installations. 2. Always automatically restart at scheduled time.