Seleziona l'azione associata al pulsante del coperchio (a batteria): valore del Registro di sistema DCSettingIndexComputerHKLM\Software\Policies\Microsoft\Power\PowerSettings\5CA83367-6E45-459F-A27B-476B1D01C936
- ID criterio
- DCSystemLidAction_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 ai pulsanti
Registro
DCSettingIndex
REG_DWORDComputerHKLM\Software\Policies\Microsoft\Power\PowerSettings\5CA83367-6E45-459F-A27B-476B1D01C936 Chiave corrente
- Valore abilitato
- Dipende dal valore dell'opzione
- Elemento
- Azione del pulsante del coperchio
| Voce | Valore memorizzato |
|---|---|
| Nessuna azione | 0 |
| Sospensione | 1 |
| Ibernazione | 2 |
| Arresto | 3 |
Applica con .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Power\PowerSettings\5CA83367-6E45-459F-A27B-476B1D01C936] ; 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\5CA83367-6E45-459F-A27B-476B1D01C936" /v "DCSettingIndex" /t REG_DWORD /d 0 /f :: Sospensione reg add "HKLM\Software\Policies\Microsoft\Power\PowerSettings\5CA83367-6E45-459F-A27B-476B1D01C936" /v "DCSettingIndex" /t REG_DWORD /d 1 /f :: Ibernazione reg add "HKLM\Software\Policies\Microsoft\Power\PowerSettings\5CA83367-6E45-459F-A27B-476B1D01C936" /v "DCSettingIndex" /t REG_DWORD /d 2 /f :: Arresto reg add "HKLM\Software\Policies\Microsoft\Power\PowerSettings\5CA83367-6E45-459F-A27B-476B1D01C936" /v "DCSettingIndex" /t REG_DWORD /d 3 /f
PowerShell
# Comune: crea la chiave New-Item -Path 'HKLM:\Software\Policies\Microsoft\Power\PowerSettings\5CA83367-6E45-459F-A27B-476B1D01C936' -Force | Out-Null # Opzioni (usarne solo una) # Nessuna azione New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Power\PowerSettings\5CA83367-6E45-459F-A27B-476B1D01C936' -Name 'DCSettingIndex' -PropertyType DWord -Value 0 -Force | Out-Null # Sospensione New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Power\PowerSettings\5CA83367-6E45-459F-A27B-476B1D01C936' -Name 'DCSettingIndex' -PropertyType DWord -Value 1 -Force | Out-Null # Ibernazione New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Power\PowerSettings\5CA83367-6E45-459F-A27B-476B1D01C936' -Name 'DCSettingIndex' -PropertyType DWord -Value 2 -Force | Out-Null # Arresto New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Power\PowerSettings\5CA83367-6E45-459F-A27B-476B1D01C936' -Name 'DCSettingIndex' -PropertyType DWord -Value 3 -Force | Out-Null