Cambiar el botón de inicio/apagado del menú Inicio: valor del Registro PowerButtonActionUsuarioHKCU\Software\Policies\Microsoft\Windows\Explorer

Id. de directiva
PowerButtonAction
Ámbito
Configuración de usuario
Compatible con
Windows Server 2008 R2 y Windows 7
Origen
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (versión 1.0)
Categoría
Menú Inicio y barra de tareas

Registro

PowerButtonAction

REG_DWORDUsuario
Valor al habilitar
Depende del valor de la opción
Elemento
Elija una de las siguientes acciones
Opciones
Elemento de listaValor almacenado
Apagar2
Suspender16
Cerrar la sesión1
Bloquear512
Reiniciar4
Cambiar usuario256
Hibernar64
Aplicar con .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

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

; Opciones (usar solo una)
; Apagar
"PowerButtonAction"=dword:00000002
; Suspender
"PowerButtonAction"=dword:00000010
; Cerrar la sesión
"PowerButtonAction"=dword:00000001
; Bloquear
"PowerButtonAction"=dword:00000200
; Reiniciar
"PowerButtonAction"=dword:00000004
; Cambiar usuario
"PowerButtonAction"=dword:00000100
; Hibernar
"PowerButtonAction"=dword:00000040
CMD
:: Opciones (usar solo una)

:: Apagar
reg add "HKCU\Software\Policies\Microsoft\Windows\Explorer" /v "PowerButtonAction" /t REG_DWORD /d 2 /f
:: Suspender
reg add "HKCU\Software\Policies\Microsoft\Windows\Explorer" /v "PowerButtonAction" /t REG_DWORD /d 16 /f
:: Cerrar la sesión
reg add "HKCU\Software\Policies\Microsoft\Windows\Explorer" /v "PowerButtonAction" /t REG_DWORD /d 1 /f
:: Bloquear
reg add "HKCU\Software\Policies\Microsoft\Windows\Explorer" /v "PowerButtonAction" /t REG_DWORD /d 512 /f
:: Reiniciar
reg add "HKCU\Software\Policies\Microsoft\Windows\Explorer" /v "PowerButtonAction" /t REG_DWORD /d 4 /f
:: Cambiar usuario
reg add "HKCU\Software\Policies\Microsoft\Windows\Explorer" /v "PowerButtonAction" /t REG_DWORD /d 256 /f
:: Hibernar
reg add "HKCU\Software\Policies\Microsoft\Windows\Explorer" /v "PowerButtonAction" /t REG_DWORD /d 64 /f
PowerShell
# Común: crear la clave
New-Item -Path 'HKCU:\Software\Policies\Microsoft\Windows\Explorer' -Force | Out-Null

# Opciones (usar solo una)
# Apagar
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\Explorer' -Name 'PowerButtonAction' -PropertyType DWord -Value 2 -Force | Out-Null
# Suspender
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\Explorer' -Name 'PowerButtonAction' -PropertyType DWord -Value 16 -Force | Out-Null
# Cerrar la sesión
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\Explorer' -Name 'PowerButtonAction' -PropertyType DWord -Value 1 -Force | Out-Null
# Bloquear
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\Explorer' -Name 'PowerButtonAction' -PropertyType DWord -Value 512 -Force | Out-Null
# Reiniciar
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\Explorer' -Name 'PowerButtonAction' -PropertyType DWord -Value 4 -Force | Out-Null
# Cambiar usuario
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\Explorer' -Name 'PowerButtonAction' -PropertyType DWord -Value 256 -Force | Out-Null
# Hibernar
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\Explorer' -Name 'PowerButtonAction' -PropertyType DWord -Value 64 -Force | Out-Null