Configure auto-restart required notification for updates
Configurer la notification de redémarrage automatique requis pour les mises à jour
Explanation
Enable this policy to specify the method by which the auto-restart required notification is dismissed. When a restart is required to install updates, the auto-restart required notification is displayed. By default, the notification is automatically dismissed after 25 seconds.
The method can be set to require user action to dismiss the notification.
If you disable or do not configure this policy, the default method will be used.
Activez cette stratégie pour spécifier la méthode de masquage de la notification de redémarrage automatique requis. Lorsque l’installation des mises à jour nécessite un redémarrage, la notification de redémarrage automatique requis s’affiche. Par défaut, cette notification est automatiquement masquée au bout de 25 secondes.
La méthode peut être définie de façon à requérir une action de l’utilisateur pour masquer la notification.
Si vous désactivez cette stratégie ou que vous ne la configurez pas, la méthode par défaut est utilisée.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsUpdate- Value name
SetAutoRestartRequiredNotificationDismissal
| 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/AutoRestartRequiredNotificationDismissal
$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 'SetAutoRestartRequiredNotificationDismissal' -Value 1 -Type DWord
# Method
# Possible options:
# 1 - Auto = 1
# 2 - User Action = 2
Set-ItemProperty -Path $k -Name 'AutoRestartRequiredNotificationDismissal' -Value 1 -Type DWordDisable
# Disable: WindowsUpdate/AutoRestartRequiredNotificationDismissal
$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 'SetAutoRestartRequiredNotificationDismissal' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": WindowsUpdate/AutoRestartRequiredNotificationDismissal
$k = 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate'
Remove-ItemProperty -Path $k -Name 'SetAutoRestartRequiredNotificationDismissal' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'AutoRestartRequiredNotificationDismissal' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Method:Méthode :AutoRestartRequiredNotificationDismissal | Drop-down listenum | AutoRestartRequiredNotificationDismissal | REG_DWORD | Required · Default choice (UI): #0
|