Do not adjust default option to 'Install Updates and Shut Down' in Shut Down Windows dialog box
Ne pas modifier l’option par défaut « Installer les mises à jour et éteindre » dans la boîte de dialogue Arrêt de Windows
Explanation
This policy setting allows you to manage whether the 'Install Updates and Shut Down' option is allowed to be the default choice in the Shut Down Windows dialog.
If you enable this policy setting, the user's last shut down choice (Hibernate, Restart, etc.) is the default option in the Shut Down Windows dialog box, regardless of whether the 'Install Updates and Shut Down' option is available in the 'What do you want the computer to do?' list.
If you disable or do not configure this policy setting, the 'Install Updates and Shut Down' option will be the default option in the Shut Down Windows dialog box if updates are available for installation at the time the user selects the Shut Down option in the Start menu.
Note that this policy setting has no impact if the Computer Configuration\Administrative Templates\Windows Components\Windows Update\Do not display 'Install Updates and Shut Down' option in Shut Down Windows dialog box policy setting is enabled.
Ce paramètre de stratégie permet d’indiquer si l’option « Installer les mises à jour et éteindre » peut être l’option par défaut dans la boîte de dialogue Arrêt de Windows.
Si vous activez ce paramètre de stratégie, la dernière option d’arrêt sélectionnée par l’utilisateur (Mettre en veille prolongée, Redémarrer, etc.) est l’option par défaut de la boîte de dialogue Arrêt de Windows, que l’option « Installer les mises à jour et éteindre » soit ou non disponible dans la liste « Que voulez-vous faire ? ».
Si vous désactivez ce paramètre de stratégie ou ne le configurez pas, l’option « Installer les mises à jour et éteindre » est l’option par défaut de la boîte de dialogue Arrêt de Windows si des mises à jour à installer sont disponibles lorsque l’utilisateur sélectionne l’option Arrêter dans le menu Démarrer.
Notez que ce paramètre de stratégie n’a aucun effet si le paramètre de stratégie Configuration ordinateur\Modèles d’administration\Composants Windows\Windows Update\Ne pas afficher l’option « Installer les mises à jour et éteindre » dans la boîte de dialogue Arrêt de Windows est activé.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsUpdate\AU- Value name
NoAUAsDefaultShutdownOption
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_DWORD = 0 |
PowerShell
PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.
Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.
Enable
# Enable: WindowsUpdate/AUNoUasDefaultPolicy_Mach
$k = 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate\AU'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'NoAUAsDefaultShutdownOption' -Value 1 -Type DWordDisable
# Disable: WindowsUpdate/AUNoUasDefaultPolicy_Mach
$k = 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate\AU'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'NoAUAsDefaultShutdownOption' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": WindowsUpdate/AUNoUasDefaultPolicy_Mach
$k = 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate\AU'
Remove-ItemProperty -Path $k -Name 'NoAUAsDefaultShutdownOption' -ErrorAction SilentlyContinue