Changer le bouton d’alimentation du menu Démarrer : valeur de Registre PowerButtonActionUtilisateurHKCU\Software\Policies\Microsoft\Windows\Explorer

ID de stratégie
PowerButtonAction
Étendue
Configuration utilisateur
Pris en charge sur
Windows Server 2008 R2 et Windows 7
Source
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
Catégorie
Menu Démarrer et barre des tâches

Registre

PowerButtonAction

REG_DWORDUtilisateur
Valeur si activée
Dépend de la valeur de l'option
Élément
Choisir l’une des actions suivantes
Options
EntréeValeur stockée
Arrêter2
Veille16
Fermer la session1
Verrouiller512
Redémarrer4
Changer d’utilisateur256
Veille prolongée64
Appliquer avec .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Explorer]

; Options (en utiliser une seule)
; Arrêter
"PowerButtonAction"=dword:00000002
; Veille
"PowerButtonAction"=dword:00000010
; Fermer la session
"PowerButtonAction"=dword:00000001
; Verrouiller
"PowerButtonAction"=dword:00000200
; Redémarrer
"PowerButtonAction"=dword:00000004
; Changer d’utilisateur
"PowerButtonAction"=dword:00000100
; Veille prolongée
"PowerButtonAction"=dword:00000040
CMD
:: Options (en utiliser une seule)

:: Arrêter
reg add "HKCU\Software\Policies\Microsoft\Windows\Explorer" /v "PowerButtonAction" /t REG_DWORD /d 2 /f
:: Veille
reg add "HKCU\Software\Policies\Microsoft\Windows\Explorer" /v "PowerButtonAction" /t REG_DWORD /d 16 /f
:: Fermer la session
reg add "HKCU\Software\Policies\Microsoft\Windows\Explorer" /v "PowerButtonAction" /t REG_DWORD /d 1 /f
:: Verrouiller
reg add "HKCU\Software\Policies\Microsoft\Windows\Explorer" /v "PowerButtonAction" /t REG_DWORD /d 512 /f
:: Redémarrer
reg add "HKCU\Software\Policies\Microsoft\Windows\Explorer" /v "PowerButtonAction" /t REG_DWORD /d 4 /f
:: Changer d’utilisateur
reg add "HKCU\Software\Policies\Microsoft\Windows\Explorer" /v "PowerButtonAction" /t REG_DWORD /d 256 /f
:: Veille prolongée
reg add "HKCU\Software\Policies\Microsoft\Windows\Explorer" /v "PowerButtonAction" /t REG_DWORD /d 64 /f
PowerShell
# Commun : créer la clé
New-Item -Path 'HKCU:\Software\Policies\Microsoft\Windows\Explorer' -Force | Out-Null

# Options (en utiliser une seule)
# Arrêter
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\Explorer' -Name 'PowerButtonAction' -PropertyType DWord -Value 2 -Force | Out-Null
# Veille
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\Explorer' -Name 'PowerButtonAction' -PropertyType DWord -Value 16 -Force | Out-Null
# Fermer la session
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\Explorer' -Name 'PowerButtonAction' -PropertyType DWord -Value 1 -Force | Out-Null
# Verrouiller
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\Explorer' -Name 'PowerButtonAction' -PropertyType DWord -Value 512 -Force | Out-Null
# Redémarrer
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\Explorer' -Name 'PowerButtonAction' -PropertyType DWord -Value 4 -Force | Out-Null
# Changer d’utilisateur
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\Explorer' -Name 'PowerButtonAction' -PropertyType DWord -Value 256 -Force | Out-Null
# Veille prolongée
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\Explorer' -Name 'PowerButtonAction' -PropertyType DWord -Value 64 -Force | Out-Null