Ouvrir dans l'explorateur

Désactiver les notifications de redémarrage automatique pour les installations de mise à jour

Turn off auto-restart notifications for update installations

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/AutoRestartNotificationDisable

Explication

Texte français issu de Windows 11 26H2

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.

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.

Registre

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsUpdate
Nom de la valeur
SetAutoRestartNotificationDisable
É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/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 DWord

Désactiver

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

Revenir à « Non configuré »

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

Disponibilité