Configurer le redémarrage automatique des notifications de rappel pour les mises à jour
Configure auto-restart reminder notifications for updates
Explication
Activez cette stratégie pour spécifier le moment où les rappels de redémarrage automatique doivent s'afficher.
Vous pouvez spécifier la durée avant un redémarrage planifié pour avertir l’utilisateur.
Si vous désactivez cette stratégie ou si vous ne la configurez pas, la période par défaut est utilisée.
Enable this policy to specify when auto-restart reminders are displayed.
You can specify the amount of time prior to a scheduled restart to notify the user.
If you disable or do not configure this policy, the default period will be used.
Registre
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsUpdate- Nom de la valeur
SetAutoRestartNotificationConfig
| É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/AutoRestartNotificationConfig
$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 'SetAutoRestartNotificationConfig' -Value 1 -Type DWord
# Période (min)
# Options possibles :
# 15 = 15
# 30 = 30
# 60 = 60
# 120 = 120
# 240 = 240
Set-ItemProperty -Path $k -Name 'AutoRestartNotificationSchedule' -Value 15 -Type DWordDésactiver
# Désactiver : WindowsUpdate/AutoRestartNotificationConfig
$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 'SetAutoRestartNotificationConfig' -Value 0 -Type DWordRevenir à « Non configuré »
# Revenir à « Non configuré » : WindowsUpdate/AutoRestartNotificationConfig
$k = 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate'
Remove-ItemProperty -Path $k -Name 'SetAutoRestartNotificationConfig' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'AutoRestartNotificationSchedule' -ErrorAction SilentlyContinueOptions (1)
| Libellé | Contrôle | Valeur de registre | Type REG | Contraintes / détails | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Période (min) :Period (min):AutoRestartNotificationSchd | Liste déroulanteenum | AutoRestartNotificationSchedule | REG_DWORD | Obligatoire · Choix par défaut (interface) : n° 0
|