Azione notifica batteria in esaurimento: valore del Registro di sistema DCSettingIndexComputerHKLM\Software\Policies\Microsoft\Power\PowerSettings\d8742dcb-3e6a-4b3c-b3fe-374623cdcf06

ID criterio
DCBatteryDischargeAction1_2
Ambito
Configurazione computer
Supportato in
Almeno Windows Vista
Origine
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (versione 1.0)
Categoria
Sistema › Risparmio energia › Impostazioni per la notifica

Registro

DCSettingIndex

REG_DWORDComputer
Valore abilitato
Dipende dal valore dell'opzione
Elemento
Azione notifica batteria in esaurimento
Opzioni
VoceValore memorizzato
Nessuna azione0
Sospensione1
Ibernazione2
Arresto3
Applica con .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

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

; Opzioni (usarne solo una)
; Nessuna azione
"DCSettingIndex"=dword:00000000
; Sospensione
"DCSettingIndex"=dword:00000001
; Ibernazione
"DCSettingIndex"=dword:00000002
; Arresto
"DCSettingIndex"=dword:00000003
CMD
:: Opzioni (usarne solo una)

:: Nessuna azione
reg add "HKLM\Software\Policies\Microsoft\Power\PowerSettings\d8742dcb-3e6a-4b3c-b3fe-374623cdcf06" /v "DCSettingIndex" /t REG_DWORD /d 0 /f
:: Sospensione
reg add "HKLM\Software\Policies\Microsoft\Power\PowerSettings\d8742dcb-3e6a-4b3c-b3fe-374623cdcf06" /v "DCSettingIndex" /t REG_DWORD /d 1 /f
:: Ibernazione
reg add "HKLM\Software\Policies\Microsoft\Power\PowerSettings\d8742dcb-3e6a-4b3c-b3fe-374623cdcf06" /v "DCSettingIndex" /t REG_DWORD /d 2 /f
:: Arresto
reg add "HKLM\Software\Policies\Microsoft\Power\PowerSettings\d8742dcb-3e6a-4b3c-b3fe-374623cdcf06" /v "DCSettingIndex" /t REG_DWORD /d 3 /f
PowerShell
# Comune: crea la chiave
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Power\PowerSettings\d8742dcb-3e6a-4b3c-b3fe-374623cdcf06' -Force | Out-Null

# Opzioni (usarne solo una)
# Nessuna azione
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Power\PowerSettings\d8742dcb-3e6a-4b3c-b3fe-374623cdcf06' -Name 'DCSettingIndex' -PropertyType DWord -Value 0 -Force | Out-Null
# Sospensione
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Power\PowerSettings\d8742dcb-3e6a-4b3c-b3fe-374623cdcf06' -Name 'DCSettingIndex' -PropertyType DWord -Value 1 -Force | Out-Null
# Ibernazione
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Power\PowerSettings\d8742dcb-3e6a-4b3c-b3fe-374623cdcf06' -Name 'DCSettingIndex' -PropertyType DWord -Value 2 -Force | Out-Null
# Arresto
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Power\PowerSettings\d8742dcb-3e6a-4b3c-b3fe-374623cdcf06' -Name 'DCSettingIndex' -PropertyType DWord -Value 3 -Force | Out-Null