Désactiver les notifications de redémarrage automatique pour les installations de mise à jour
Turn off auto-restart notifications for update installations
Explication
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
| État | Valeur é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 DWordDé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 DWordRevenir à « Non configuré »
# Revenir à « Non configuré » : WindowsUpdate/AutoRestartNotificationDisable
$k = 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate'
Remove-ItemProperty -Path $k -Name 'SetAutoRestartNotificationDisable' -ErrorAction SilentlyContinue