Ouvrir dans l'explorateur

Configurer le redémarrage automatique des notifications d’avertissement prévues pour les mises à jour

Configure auto-restart warning notifications schedule 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/RestartWarnRemind

Explication

Texte français issu de Windows 11 26H2

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
É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/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 DWord

Dé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 DWord

Revenir à « 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 SilentlyContinue

Options (2)

LibelléContrôleValeur de registreType REGContraintes / détails
Rappel (heures) :Reminder (hours):RestartWarnRemindListe déroulanteenumScheduleRestartWarningREG_DWORD
Obligatoire · Choix par défaut (interface) : n° 1
LibelléValeur
2REG_DWORD = 2
4REG_DWORD = 4
8REG_DWORD = 8
12REG_DWORD = 12
24REG_DWORD = 24
Avertissement (minutes) :Warning (mins):RestartWarnListe déroulanteenumScheduleImminentRestartWarningREG_DWORD
Obligatoire · Choix par défaut (interface) : n° 0
LibelléValeur
15REG_DWORD = 15
30REG_DWORD = 30
60REG_DWORD = 60

Disponibilité