Alterar botão para desligar do Menu Iniciar: valor do Registro PowerButtonActionUsuárioHKCU\Software\Policies\Microsoft\Windows\Explorer

ID da política
PowerButtonAction
Escopo
Configuração do Usuário
Compatível com
Windows Server 2008 R2 e Windows 7
Fonte
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (versão 1.0)
Categoria
Menu Iniciar e Barra de Tarefas

Registro

PowerButtonAction

REG_DWORDUsuário
Valor habilitado
Depende do valor da opção
Elemento
Escolha uma das ações a seguir
Opções
ItemValor armazenado
Desligar2
Dormir16
Fazer Logoff1
Bloquear512
Reiniciar4
Alternar Usuário256
Hibernar64
Aplicar com .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

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

; Opções (use apenas uma)
; Desligar
"PowerButtonAction"=dword:00000002
; Dormir
"PowerButtonAction"=dword:00000010
; Fazer Logoff
"PowerButtonAction"=dword:00000001
; Bloquear
"PowerButtonAction"=dword:00000200
; Reiniciar
"PowerButtonAction"=dword:00000004
; Alternar Usuário
"PowerButtonAction"=dword:00000100
; Hibernar
"PowerButtonAction"=dword:00000040
CMD
:: Opções (use apenas uma)

:: Desligar
reg add "HKCU\Software\Policies\Microsoft\Windows\Explorer" /v "PowerButtonAction" /t REG_DWORD /d 2 /f
:: Dormir
reg add "HKCU\Software\Policies\Microsoft\Windows\Explorer" /v "PowerButtonAction" /t REG_DWORD /d 16 /f
:: Fazer Logoff
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
:: Alternar Usuário
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
# Comum: criar a chave
New-Item -Path 'HKCU:\Software\Policies\Microsoft\Windows\Explorer' -Force | Out-Null

# Opções (use apenas uma)
# Desligar
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\Explorer' -Name 'PowerButtonAction' -PropertyType DWord -Value 2 -Force | Out-Null
# Dormir
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\Explorer' -Name 'PowerButtonAction' -PropertyType DWord -Value 16 -Force | Out-Null
# Fazer Logoff
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
# Alternar Usuário
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