Select the Power button action (plugged in): registry value ACSettingIndexComputerHKLM\Software\Policies\Microsoft\Power\PowerSettings\7648EFA3-DD9C-4E3E-B566-50F929386280
- Policy ID
- ACPowerButtonAction_2
- Scope
- Computer Configuration
- Supported on
- At least Windows Vista
- Source
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
- Category
- System › Power Management › Button Settings
Registry
ACSettingIndex
REG_DWORDComputerHKLM\Software\Policies\Microsoft\Power\PowerSettings\7648EFA3-DD9C-4E3E-B566-50F929386280 Current key
- Enabled value
- Depends on the option value
- Element
- Power Button Action
| Item | Stored value |
|---|---|
| Take no action | 0 |
| Sleep | 1 |
| Hibernate | 2 |
| Shut down | 3 |
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Power\PowerSettings\7648EFA3-DD9C-4E3E-B566-50F929386280] ; Options (use only one) ; Take no action "ACSettingIndex"=dword:00000000 ; Sleep "ACSettingIndex"=dword:00000001 ; Hibernate "ACSettingIndex"=dword:00000002 ; Shut down "ACSettingIndex"=dword:00000003
CMD
:: Options (use only one) :: Take no action reg add "HKLM\Software\Policies\Microsoft\Power\PowerSettings\7648EFA3-DD9C-4E3E-B566-50F929386280" /v "ACSettingIndex" /t REG_DWORD /d 0 /f :: Sleep reg add "HKLM\Software\Policies\Microsoft\Power\PowerSettings\7648EFA3-DD9C-4E3E-B566-50F929386280" /v "ACSettingIndex" /t REG_DWORD /d 1 /f :: Hibernate reg add "HKLM\Software\Policies\Microsoft\Power\PowerSettings\7648EFA3-DD9C-4E3E-B566-50F929386280" /v "ACSettingIndex" /t REG_DWORD /d 2 /f :: Shut down reg add "HKLM\Software\Policies\Microsoft\Power\PowerSettings\7648EFA3-DD9C-4E3E-B566-50F929386280" /v "ACSettingIndex" /t REG_DWORD /d 3 /f
PowerShell
# Common: create the key New-Item -Path 'HKLM:\Software\Policies\Microsoft\Power\PowerSettings\7648EFA3-DD9C-4E3E-B566-50F929386280' -Force | Out-Null # Options (use only one) # Take no action New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Power\PowerSettings\7648EFA3-DD9C-4E3E-B566-50F929386280' -Name 'ACSettingIndex' -PropertyType DWord -Value 0 -Force | Out-Null # Sleep New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Power\PowerSettings\7648EFA3-DD9C-4E3E-B566-50F929386280' -Name 'ACSettingIndex' -PropertyType DWord -Value 1 -Force | Out-Null # Hibernate New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Power\PowerSettings\7648EFA3-DD9C-4E3E-B566-50F929386280' -Name 'ACSettingIndex' -PropertyType DWord -Value 2 -Force | Out-Null # Shut down New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Power\PowerSettings\7648EFA3-DD9C-4E3E-B566-50F929386280' -Name 'ACSettingIndex' -PropertyType DWord -Value 3 -Force | Out-Null