Sélectionner l’action du bouton de veille (sur batterie) : valeur de Registre DCSettingIndexOrdinateurHKLM\Software\Policies\Microsoft\Power\PowerSettings\96996BC0-AD50-47EC-923B-6F41874DD9EB
- ID de stratégie
- DCSleepButtonAction_2
- Étendue
- Configuration ordinateur
- Pris en charge sur
- Au minimum Windows Vista
- Source
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
- Catégorie
- Système › Gestion de l’alimentation › Paramètres du bouton
Registre
DCSettingIndex
REG_DWORDOrdinateurHKLM\Software\Policies\Microsoft\Power\PowerSettings\96996BC0-AD50-47EC-923B-6F41874DD9EB Clé actuelle
- Valeur si activée
- Dépend de la valeur de l'option
- Élément
- Action du bouton de veille
| Entrée | Valeur stockée |
|---|---|
| Ne rien faire | 0 |
| Mettre en veille | 1 |
| Mettre en veille prolongée | 2 |
| Arrêter | 3 |
Appliquer avec .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Power\PowerSettings\96996BC0-AD50-47EC-923B-6F41874DD9EB] ; Options (en utiliser une seule) ; Ne rien faire "DCSettingIndex"=dword:00000000 ; Mettre en veille "DCSettingIndex"=dword:00000001 ; Mettre en veille prolongée "DCSettingIndex"=dword:00000002 ; Arrêter "DCSettingIndex"=dword:00000003
CMD
:: Options (en utiliser une seule) :: Ne rien faire reg add "HKLM\Software\Policies\Microsoft\Power\PowerSettings\96996BC0-AD50-47EC-923B-6F41874DD9EB" /v "DCSettingIndex" /t REG_DWORD /d 0 /f :: Mettre en veille reg add "HKLM\Software\Policies\Microsoft\Power\PowerSettings\96996BC0-AD50-47EC-923B-6F41874DD9EB" /v "DCSettingIndex" /t REG_DWORD /d 1 /f :: Mettre en veille prolongée reg add "HKLM\Software\Policies\Microsoft\Power\PowerSettings\96996BC0-AD50-47EC-923B-6F41874DD9EB" /v "DCSettingIndex" /t REG_DWORD /d 2 /f :: Arrêter reg add "HKLM\Software\Policies\Microsoft\Power\PowerSettings\96996BC0-AD50-47EC-923B-6F41874DD9EB" /v "DCSettingIndex" /t REG_DWORD /d 3 /f
PowerShell
# Commun : créer la clé New-Item -Path 'HKLM:\Software\Policies\Microsoft\Power\PowerSettings\96996BC0-AD50-47EC-923B-6F41874DD9EB' -Force | Out-Null # Options (en utiliser une seule) # Ne rien faire New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Power\PowerSettings\96996BC0-AD50-47EC-923B-6F41874DD9EB' -Name 'DCSettingIndex' -PropertyType DWord -Value 0 -Force | Out-Null # Mettre en veille New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Power\PowerSettings\96996BC0-AD50-47EC-923B-6F41874DD9EB' -Name 'DCSettingIndex' -PropertyType DWord -Value 1 -Force | Out-Null # Mettre en veille prolongée New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Power\PowerSettings\96996BC0-AD50-47EC-923B-6F41874DD9EB' -Name 'DCSettingIndex' -PropertyType DWord -Value 2 -Force | Out-Null # Arrêter New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Power\PowerSettings\96996BC0-AD50-47EC-923B-6F41874DD9EB' -Name 'DCSettingIndex' -PropertyType DWord -Value 3 -Force | Out-Null