Wybierz akcję przycisku zasilania w menu Start (zasilanie z baterii): wartość rejestru DCSettingIndexKomputerHKLM\Software\Policies\Microsoft\Power\PowerSettings\A7066653-8D6C-40A8-910E-A1F54B84C7E5
- Identyfikator zasady
- DCStartMenuButtonAction_2
- Zakres
- Konfiguracja komputera
- Obsługiwane w systemach
- Tylko system Windows Vista
- Źródło
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (wersja 1.0)
- Kategoria
- System › Zarządzanie energią › Ustawienia przycisków
Rejestr
DCSettingIndex
REG_DWORDKomputerHKLM\Software\Policies\Microsoft\Power\PowerSettings\A7066653-8D6C-40A8-910E-A1F54B84C7E5 Bieżący klucz
- Wartość włączona
- Zależy od wartości opcji
- Element
- Akcja przycisku Uśpij w interfejsie użytkownika
| Pozycja | Zapisana wartość |
|---|---|
| Uśpij | 0 |
| Hibernuj | 1 |
| Zamknij | 2 |
Zastosuj przez .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Power\PowerSettings\A7066653-8D6C-40A8-910E-A1F54B84C7E5] ; Opcje (użyj tylko jednej) ; Uśpij "DCSettingIndex"=dword:00000000 ; Hibernuj "DCSettingIndex"=dword:00000001 ; Zamknij "DCSettingIndex"=dword:00000002
CMD
:: Opcje (użyj tylko jednej) :: Uśpij reg add "HKLM\Software\Policies\Microsoft\Power\PowerSettings\A7066653-8D6C-40A8-910E-A1F54B84C7E5" /v "DCSettingIndex" /t REG_DWORD /d 0 /f :: Hibernuj reg add "HKLM\Software\Policies\Microsoft\Power\PowerSettings\A7066653-8D6C-40A8-910E-A1F54B84C7E5" /v "DCSettingIndex" /t REG_DWORD /d 1 /f :: Zamknij reg add "HKLM\Software\Policies\Microsoft\Power\PowerSettings\A7066653-8D6C-40A8-910E-A1F54B84C7E5" /v "DCSettingIndex" /t REG_DWORD /d 2 /f
PowerShell
# Wspólne: utwórz klucz New-Item -Path 'HKLM:\Software\Policies\Microsoft\Power\PowerSettings\A7066653-8D6C-40A8-910E-A1F54B84C7E5' -Force | Out-Null # Opcje (użyj tylko jednej) # Uśpij New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Power\PowerSettings\A7066653-8D6C-40A8-910E-A1F54B84C7E5' -Name 'DCSettingIndex' -PropertyType DWord -Value 0 -Force | Out-Null # Hibernuj New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Power\PowerSettings\A7066653-8D6C-40A8-910E-A1F54B84C7E5' -Name 'DCSettingIndex' -PropertyType DWord -Value 1 -Force | Out-Null # Zamknij New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Power\PowerSettings\A7066653-8D6C-40A8-910E-A1F54B84C7E5' -Name 'DCSettingIndex' -PropertyType DWord -Value 2 -Force | Out-Null