Configurer le redémarrage automatique des notifications d’avertissement prévues pour les mises à jour
Configure auto-restart warning notifications schedule for updates
Explication
Autorisez cette stratégie à contrôler le moment où les notifications sont affichées pour avertir les utilisateurs d’un redémarrage planifié pour la date d’échéance d’installation de la mise à jour. Les utilisateurs ne sont pas habilités à reporter le redémarrage planifié une fois que la date d’échéance a été atteinte, et le redémarrage est exécuté automatiquement.
Spécifie la durée précédant un redémarrage planifié pour afficher le rappel d’avertissement auprès de l’utilisateur.
Vous pouvez spécifier la durée avant un redémarrage planifié pour notifier à l’utilisateur que le redémarrage automatique est imminent afin de lui laisser le temps d’enregistrer son travail.
Si vous désactivez cette stratégie ou si vous ne la configurez pas, les comportements par défaut des notifications seront utilisés.
Enable this policy to control when notifications are displayed to warn users about a scheduled restart for the update installation deadline. Users are not able to postpone the scheduled restart once the deadline has been reached and the restart is automatically executed.
Specifies the amount of time prior to a scheduled restart to display the warning reminder to the user.
You can specify the amount of time prior to a scheduled restart to notify the user that the auto restart is imminent to allow them time to save their work.
If you disable or do not configure this policy, the default notification behaviors will be used.
Registre
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsUpdate- Nom de la valeur
SetRestartWarningSchd
| É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/RestartWarnRemind
$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 'SetRestartWarningSchd' -Value 1 -Type DWord
# Rappel (heures)
# Options possibles :
# 2 = 2
# 4 = 4
# 8 = 8
# 12 = 12
# 24 = 24
Set-ItemProperty -Path $k -Name 'ScheduleRestartWarning' -Value 4 -Type DWord
# Avertissement (minutes)
# Options possibles :
# 15 = 15
# 30 = 30
# 60 = 60
Set-ItemProperty -Path $k -Name 'ScheduleImminentRestartWarning' -Value 15 -Type DWordDésactiver
# Désactiver : WindowsUpdate/RestartWarnRemind
$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 'SetRestartWarningSchd' -Value 0 -Type DWordRevenir à « Non configuré »
# Revenir à « Non configuré » : WindowsUpdate/RestartWarnRemind
$k = 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate'
Remove-ItemProperty -Path $k -Name 'SetRestartWarningSchd' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'ScheduleRestartWarning' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'ScheduleImminentRestartWarning' -ErrorAction SilentlyContinueOptions (2)
| Libellé | Contrôle | Valeur de registre | Type REG | Contraintes / détails | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Rappel (heures) :Reminder (hours):RestartWarnRemind | Liste déroulanteenum | ScheduleRestartWarning | REG_DWORD | Obligatoire · Choix par défaut (interface) : n° 1
| ||||||||||||
| Avertissement (minutes) :Warning (mins):RestartWarn | Liste déroulanteenum | ScheduleImminentRestartWarning | REG_DWORD | Obligatoire · Choix par défaut (interface) : n° 0
|