Zmień przycisk zasilania w menu Start: wartość rejestru PowerButtonActionUżytkownikHKCU\Software\Policies\Microsoft\Windows\Explorer

Identyfikator zasady
PowerButtonAction
Zakres
Konfiguracja użytkownika
Obsługiwane w systemach
Systemy Windows Server 2008 R2 i Windows 7
Źródło
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (wersja 1.0)
Kategoria
Menu Start i pasek zadań

Rejestr

PowerButtonAction

REG_DWORDUżytkownik
Wartość włączona
Zależy od wartości opcji
Element
Wybierz jedną z następujących akcji
Opcje
PozycjaZapisana wartość
Wyłącz2
Uśpij16
Wyloguj1
Zablokuj512
Uruchom ponownie4
Przełącz użytkownika256
Hibernuj64
Zastosuj przez .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Explorer]

; Opcje (użyj tylko jednej)
; Wyłącz
"PowerButtonAction"=dword:00000002
; Uśpij
"PowerButtonAction"=dword:00000010
; Wyloguj
"PowerButtonAction"=dword:00000001
; Zablokuj
"PowerButtonAction"=dword:00000200
; Uruchom ponownie
"PowerButtonAction"=dword:00000004
; Przełącz użytkownika
"PowerButtonAction"=dword:00000100
; Hibernuj
"PowerButtonAction"=dword:00000040
CMD
:: Opcje (użyj tylko jednej)

:: Wyłącz
reg add "HKCU\Software\Policies\Microsoft\Windows\Explorer" /v "PowerButtonAction" /t REG_DWORD /d 2 /f
:: Uśpij
reg add "HKCU\Software\Policies\Microsoft\Windows\Explorer" /v "PowerButtonAction" /t REG_DWORD /d 16 /f
:: Wyloguj
reg add "HKCU\Software\Policies\Microsoft\Windows\Explorer" /v "PowerButtonAction" /t REG_DWORD /d 1 /f
:: Zablokuj
reg add "HKCU\Software\Policies\Microsoft\Windows\Explorer" /v "PowerButtonAction" /t REG_DWORD /d 512 /f
:: Uruchom ponownie
reg add "HKCU\Software\Policies\Microsoft\Windows\Explorer" /v "PowerButtonAction" /t REG_DWORD /d 4 /f
:: Przełącz użytkownika
reg add "HKCU\Software\Policies\Microsoft\Windows\Explorer" /v "PowerButtonAction" /t REG_DWORD /d 256 /f
:: Hibernuj
reg add "HKCU\Software\Policies\Microsoft\Windows\Explorer" /v "PowerButtonAction" /t REG_DWORD /d 64 /f
PowerShell
# Wspólne: utwórz klucz
New-Item -Path 'HKCU:\Software\Policies\Microsoft\Windows\Explorer' -Force | Out-Null

# Opcje (użyj tylko jednej)
# Wyłącz
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\Explorer' -Name 'PowerButtonAction' -PropertyType DWord -Value 2 -Force | Out-Null
# Uśpij
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\Explorer' -Name 'PowerButtonAction' -PropertyType DWord -Value 16 -Force | Out-Null
# Wyloguj
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\Explorer' -Name 'PowerButtonAction' -PropertyType DWord -Value 1 -Force | Out-Null
# Zablokuj
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\Explorer' -Name 'PowerButtonAction' -PropertyType DWord -Value 512 -Force | Out-Null
# Uruchom ponownie
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\Explorer' -Name 'PowerButtonAction' -PropertyType DWord -Value 4 -Force | Out-Null
# Przełącz użytkownika
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\Explorer' -Name 'PowerButtonAction' -PropertyType DWord -Value 256 -Force | Out-Null
# Hibernuj
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\Explorer' -Name 'PowerButtonAction' -PropertyType DWord -Value 64 -Force | Out-Null