Turn off auto-restart notifications for update installations
Désactiver les notifications de redémarrage automatique pour les installations de mise à jour
Explanation
This policy setting allows you to control whether users receive notifications for auto restarts for update installations including reminder and warning notifications.
Enable this policy to turn off all auto restart notifications.
If you disable or do not configure this policy, the default notification behaviors will be unchanged.
Ce paramètre de stratégie permet de contrôler si un utilisateur reçoit des notifications de redémarrage automatique pour l’installation des mises à jour, y compris des notifications de rappel et d’avertissement .
Activez cette stratégie pour désactiver toutes les notifications de redémarrage automatique.
Si vous désactivez ou ne configurez pas cette stratégie, les comportements de notification par défaut resteront inchangés.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsUpdate- Value name
SetAutoRestartNotificationDisable
| 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/AutoRestartNotificationDisable
$k = 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'SetAutoRestartNotificationDisable' -Value 1 -Type DWordDisable
# Disable: WindowsUpdate/AutoRestartNotificationDisable
$k = 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'SetAutoRestartNotificationDisable' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": WindowsUpdate/AutoRestartNotificationDisable
$k = 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate'
Remove-ItemProperty -Path $k -Name 'SetAutoRestartNotificationDisable' -ErrorAction SilentlyContinue