Open in the explorer

Select the Start menu Power button action (on battery)

Sélectionner l’action du bouton d’alimentation du menu Démarrer (sur batterie)

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › System › Power Management › Button Settings FR: Configuration ordinateur › Stratégies › Modèles d'administration › Système › Gestion de l’alimentation › Paramètres du bouton
Supported on
Windows Vista only FR: Windows Vista uniquement
ADMX file
Power.admx
Internal name
Power/DCStartMenuButtonAction_2

Explanation

This policy setting specifies the action that Windows takes when a user presses the Start menu Power button.

If you enable this policy setting, select one of the following actions:
-Sleep
-Hibernate
-Shut down

If you disable this policy or do not configure this policy setting, users control this setting.

French text from Windows 11 26H2

Ce paramètre de stratégie spécifie l’action effectuée par Windows lorsqu’un utilisateur appuie sur le bouton d’alimentation du menu Démarrer.

Si vous activez ce paramètre de stratégie, sélectionnez l’une des actions suivantes :
-Mettre en veille
-Mettre en veille prolongée
-Arrêter

Si vous désactivez ou ne configurez pas ce paramètre de stratégie, les utilisateurs contrôlent ce paramètre.

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Power\PowerSettings\A7066653-8D6C-40A8-910E-A1F54B84C7E5
Value name
not defined in the ADMX

Enable / disable values: not defined in the ADMX (see the options below).

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: Power/DCStartMenuButtonAction_2
$k = 'HKLM:\Software\Policies\Microsoft\Power\PowerSettings\A7066653-8D6C-40A8-910E-A1F54B84C7E5'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# User Interface Sleep Button Action
# Possible options:
#   Sleep = 0
#   Hibernate = 1
#   Shut down = 2
Set-ItemProperty -Path $k -Name 'DCSettingIndex' -Value 0 -Type DWord

Disable

# Disable: Power/DCStartMenuButtonAction_2
# No value is written in the "Disabled" state (nothing defined in the ADMX)

Revert to "Not configured"

# Revert to "Not configured": Power/DCStartMenuButtonAction_2
$k = 'HKLM:\Software\Policies\Microsoft\Power\PowerSettings\A7066653-8D6C-40A8-910E-A1F54B84C7E5'
Remove-ItemProperty -Path $k -Name 'DCSettingIndex' -ErrorAction SilentlyContinue

Options (1)

LabelControlRegistry valueREG typeConstraints / details
User Interface Sleep Button ActionAction du bouton de veille de l’interface utilisateurSelectDCStartMenuButtonActionDrop-down listenumDCSettingIndexREG_DWORD
Required
LabelValue
SleepREG_DWORD = 0
HibernateREG_DWORD = 1
Shut downREG_DWORD = 2

Availability