Richiedi password alla riattivazione del computer (a batteria): valore del Registro di sistema DCSettingIndexComputerHKLM\Software\Policies\Microsoft\Power\PowerSettings\0e796bdb-100d-47d6-a2d5-f7d2daa51f51

ID criterio
DCPromptForPasswordOnResume_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 relative alla modalità sospensione

Registro

DCSettingIndex

REG_DWORDComputer
Valore abilitato
1
Valore disabilitato
0
Applica con .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Power\PowerSettings\0e796bdb-100d-47d6-a2d5-f7d2daa51f51]

; Opzioni (usarne solo una)
; Abilitato
"DCSettingIndex"=dword:00000001
; Disabilitato
"DCSettingIndex"=dword:00000000
CMD
:: Opzioni (usarne solo una)

:: Abilitato
reg add "HKLM\Software\Policies\Microsoft\Power\PowerSettings\0e796bdb-100d-47d6-a2d5-f7d2daa51f51" /v "DCSettingIndex" /t REG_DWORD /d 1 /f
:: Disabilitato
reg add "HKLM\Software\Policies\Microsoft\Power\PowerSettings\0e796bdb-100d-47d6-a2d5-f7d2daa51f51" /v "DCSettingIndex" /t REG_DWORD /d 0 /f
PowerShell
# Comune: crea la chiave
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Power\PowerSettings\0e796bdb-100d-47d6-a2d5-f7d2daa51f51' -Force | Out-Null

# Opzioni (usarne solo una)
# Abilitato
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Power\PowerSettings\0e796bdb-100d-47d6-a2d5-f7d2daa51f51' -Name 'DCSettingIndex' -PropertyType DWord -Value 1 -Force | Out-Null
# Disabilitato
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Power\PowerSettings\0e796bdb-100d-47d6-a2d5-f7d2daa51f51' -Name 'DCSettingIndex' -PropertyType DWord -Value 0 -Force | Out-Null