Low battery notification action: registry value DCSettingIndexComputerHKLM\Software\Policies\Microsoft\Power\PowerSettings\d8742dcb-3e6a-4b3c-b3fe-374623cdcf06

Policy ID
DCBatteryDischargeAction1_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 › Notification Settings

Registry

DCSettingIndex

REG_DWORDComputer
Enabled value
Depends on the option value
Element
Low Battery Notification Action
Options
ItemStored value
Take no action0
Sleep1
Hibernate2
Shut down3
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Power\PowerSettings\d8742dcb-3e6a-4b3c-b3fe-374623cdcf06]

; Options (use only one)
; Take no action
"DCSettingIndex"=dword:00000000
; Sleep
"DCSettingIndex"=dword:00000001
; Hibernate
"DCSettingIndex"=dword:00000002
; Shut down
"DCSettingIndex"=dword:00000003
CMD
:: Options (use only one)

:: Take no action
reg add "HKLM\Software\Policies\Microsoft\Power\PowerSettings\d8742dcb-3e6a-4b3c-b3fe-374623cdcf06" /v "DCSettingIndex" /t REG_DWORD /d 0 /f
:: Sleep
reg add "HKLM\Software\Policies\Microsoft\Power\PowerSettings\d8742dcb-3e6a-4b3c-b3fe-374623cdcf06" /v "DCSettingIndex" /t REG_DWORD /d 1 /f
:: Hibernate
reg add "HKLM\Software\Policies\Microsoft\Power\PowerSettings\d8742dcb-3e6a-4b3c-b3fe-374623cdcf06" /v "DCSettingIndex" /t REG_DWORD /d 2 /f
:: Shut down
reg add "HKLM\Software\Policies\Microsoft\Power\PowerSettings\d8742dcb-3e6a-4b3c-b3fe-374623cdcf06" /v "DCSettingIndex" /t REG_DWORD /d 3 /f
PowerShell
# Common: create the key
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Power\PowerSettings\d8742dcb-3e6a-4b3c-b3fe-374623cdcf06' -Force | Out-Null

# Options (use only one)
# Take no action
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Power\PowerSettings\d8742dcb-3e6a-4b3c-b3fe-374623cdcf06' -Name 'DCSettingIndex' -PropertyType DWord -Value 0 -Force | Out-Null
# Sleep
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Power\PowerSettings\d8742dcb-3e6a-4b3c-b3fe-374623cdcf06' -Name 'DCSettingIndex' -PropertyType DWord -Value 1 -Force | Out-Null
# Hibernate
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Power\PowerSettings\d8742dcb-3e6a-4b3c-b3fe-374623cdcf06' -Name 'DCSettingIndex' -PropertyType DWord -Value 2 -Force | Out-Null
# Shut down
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Power\PowerSettings\d8742dcb-3e6a-4b3c-b3fe-374623cdcf06' -Name 'DCSettingIndex' -PropertyType DWord -Value 3 -Force | Out-Null