Delay Restart for scheduled installations
Délai de redémarrage pour les installations planifiées
Explanation
Specifies the amount of time for Automatic Updates to wait before proceeding with a scheduled restart.
If the status is set to Enabled, a scheduled restart will occur the specified number of minutes after the installation is finished.
If the status is set to Disabled or Not Configured, the default wait time is 15 minutes.
Note: This policy applies only when Automatic Updates is configured to perform scheduled installations of updates. If the "Configure Automatic Updates" policy is disabled, this policy has no effect.
Indique la durée pendant laquelle les mises à jour automatiques doivent attendre avant de procéder à un redémarrage planifié.
Si l’état Activé est sélectionné, un redémarrage planifié se produira au bout du nombre de minutes spécifié, après le report de la première demande de redémarrage.
Si l’état est Désactivé ou Non configuré, la durée d’attente par défaut sera de 15 minutes.
Remarque : cette stratégie s’applique uniquement lorsque le service Mises à jour automatiques est configuré pour effectuer des installations planifiées de mises à jour. Si la stratégie Configuration du service Mises à jour automatiques est désactivée, cette stratégie n’a aucun effet.
Use cases
Sets how long (15 minutes by default) Windows waits before performing a scheduled restart after installation, giving the user time to save their work. It only applies with scheduling option 4.
Microsoft source: Step 4: Configure Group Policy settings for automatic updates
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsUpdate\AU- Value name
RebootWarningTimeoutEnabled
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_DWORD = 0 |
PowerShell
PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.
Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.
Enable
# Enable: WindowsUpdate/RebootWarningTimeout_Title
$k = 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate\AU'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'RebootWarningTimeoutEnabled' -Value 1 -Type DWord
# restart (minutes)
Set-ItemProperty -Path $k -Name 'RebootWarningTimeout' -Value 5 -Type DWord # between 1 and 30Disable
# Disable: WindowsUpdate/RebootWarningTimeout_Title
$k = 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate\AU'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'RebootWarningTimeoutEnabled' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": WindowsUpdate/RebootWarningTimeout_Title
$k = 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate\AU'
Remove-ItemProperty -Path $k -Name 'RebootWarningTimeoutEnabled' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'RebootWarningTimeout' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| restart (minutes):planifié (minutes) :RebootWarningTimeout_Minutes3 | Numeric boxdecimal | RebootWarningTimeout | REG_DWORD | Required · Min: 1 · Max: 30 · Default (UI): 5 |