Ein-/Aus-Schalter im Startmenü ändern: Registrierungswert PowerButtonActionBenutzerHKCU\Software\Policies\Microsoft\Windows\Explorer
- Richtlinien-ID
- PowerButtonAction
- Bereich
- Benutzerkonfiguration
- Unterstützt unter
- Windows Server 2008 R2 und Windows 7
- Quelle
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (Version 1.0)
- Kategorie
- Startmenü und Taskleiste
Registrierung
PowerButtonAction
REG_DWORDBenutzerHKCU\Software\Policies\Microsoft\Windows\Explorer Aktueller Schlüssel
- Wert bei Aktivierung
- Hängt vom Wert der Option ab
- Element
- Wählen Sie eine der folgenden Aktionen
| Eintrag | Gespeicherter Wert |
|---|---|
| Herunterfahren | 2 |
| Energiesparmodus | 16 |
| Abmelden | 1 |
| Sperren | 512 |
| Neu starten | 4 |
| Benutzer wechseln | 256 |
| Ruhezustand | 64 |
Mit .reg · CMD · PowerShell anwenden
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Explorer] ; Optionen (nur eine verwenden) ; Herunterfahren "PowerButtonAction"=dword:00000002 ; Energiesparmodus "PowerButtonAction"=dword:00000010 ; Abmelden "PowerButtonAction"=dword:00000001 ; Sperren "PowerButtonAction"=dword:00000200 ; Neu starten "PowerButtonAction"=dword:00000004 ; Benutzer wechseln "PowerButtonAction"=dword:00000100 ; Ruhezustand "PowerButtonAction"=dword:00000040
CMD
:: Optionen (nur eine verwenden) :: Herunterfahren reg add "HKCU\Software\Policies\Microsoft\Windows\Explorer" /v "PowerButtonAction" /t REG_DWORD /d 2 /f :: Energiesparmodus reg add "HKCU\Software\Policies\Microsoft\Windows\Explorer" /v "PowerButtonAction" /t REG_DWORD /d 16 /f :: Abmelden reg add "HKCU\Software\Policies\Microsoft\Windows\Explorer" /v "PowerButtonAction" /t REG_DWORD /d 1 /f :: Sperren reg add "HKCU\Software\Policies\Microsoft\Windows\Explorer" /v "PowerButtonAction" /t REG_DWORD /d 512 /f :: Neu starten reg add "HKCU\Software\Policies\Microsoft\Windows\Explorer" /v "PowerButtonAction" /t REG_DWORD /d 4 /f :: Benutzer wechseln reg add "HKCU\Software\Policies\Microsoft\Windows\Explorer" /v "PowerButtonAction" /t REG_DWORD /d 256 /f :: Ruhezustand reg add "HKCU\Software\Policies\Microsoft\Windows\Explorer" /v "PowerButtonAction" /t REG_DWORD /d 64 /f
PowerShell
# Gemeinsam: Schlüssel erstellen New-Item -Path 'HKCU:\Software\Policies\Microsoft\Windows\Explorer' -Force | Out-Null # Optionen (nur eine verwenden) # Herunterfahren New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\Explorer' -Name 'PowerButtonAction' -PropertyType DWord -Value 2 -Force | Out-Null # Energiesparmodus New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\Explorer' -Name 'PowerButtonAction' -PropertyType DWord -Value 16 -Force | Out-Null # Abmelden New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\Explorer' -Name 'PowerButtonAction' -PropertyType DWord -Value 1 -Force | Out-Null # Sperren New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\Explorer' -Name 'PowerButtonAction' -PropertyType DWord -Value 512 -Force | Out-Null # Neu starten New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\Explorer' -Name 'PowerButtonAction' -PropertyType DWord -Value 4 -Force | Out-Null # Benutzer wechseln New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\Explorer' -Name 'PowerButtonAction' -PropertyType DWord -Value 256 -Force | Out-Null # Ruhezustand New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\Explorer' -Name 'PowerButtonAction' -PropertyType DWord -Value 64 -Force | Out-Null