Ouvrir dans l'explorateur

Configurer la notification de redémarrage automatique requis pour les mises à jour

Configure auto-restart required notification for updates

Type
Ordinateur
Chemin GPO
Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Windows Update › Stratégies héritées EN : Computer Configuration › Policies › Administrative Templates › Windows Components › Windows Update › Legacy Policies
Pris en charge sur
Windows Server 2016 via Windows Server 2022 ou Windows 10 EN : Windows Server 2016 through Windows Server 2022, or Windows 10​
Fichier ADMX
WindowsUpdate.admx
Nom interne
WindowsUpdate/AutoRestartRequiredNotificationDismissal

Explication

Texte français issu de Windows 11 26H2

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.

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.

Registre

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsUpdate
Nom de la valeur
SetAutoRestartRequiredNotificationDismissal
ÉtatValeur écrite
ActivéREG_DWORD = 1
DésactivéREG_DWORD = 0

PowerShell

Commandes PowerShell qui écrivent dans le registre ce que la stratégie écrirait. Les valeurs entre chevrons (<…>) sont à remplacer.

Écrire directement dans le registre contourne la stratégie de groupe : si une GPO gère cette valeur, elle sera réécrite au prochain gpupdate ; sinon la valeur reste en place (effet « tatouage »). Préférez une GPO ou, en local, LGPO.exe. Exécutez PowerShell en administrateur pour HKLM. Certaines stratégies demandent un redémarrage ou gpupdate /force.

Activer

# Activer : 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
# Méthode
# Options possibles :
#   1 - Auto = 1
#   2 - User Action = 2
Set-ItemProperty -Path $k -Name 'AutoRestartRequiredNotificationDismissal' -Value 1 -Type DWord

Désactiver

# Désactiver : 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 DWord

Revenir à « Non configuré »

# Revenir à « Non configuré » : WindowsUpdate/AutoRestartRequiredNotificationDismissal
$k = 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate'
Remove-ItemProperty -Path $k -Name 'SetAutoRestartRequiredNotificationDismissal' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'AutoRestartRequiredNotificationDismissal' -ErrorAction SilentlyContinue

Options (1)

LibelléContrôleValeur de registreType REGContraintes / détails
Méthode :Method:AutoRestartRequiredNotificationDismissalListe déroulanteenumAutoRestartRequiredNotificationDismissalREG_DWORD
Obligatoire · Choix par défaut (interface) : n° 0
LibelléValeur
1 - AutoREG_DWORD = 1
2 - User ActionREG_DWORD = 2

Disponibilité