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
| Item | Valor armazenado |
|---|---|
| Desligar | 2 |
| Dormir | 16 |
| Fazer Logoff | 1 |
| Bloquear | 512 |
| Reiniciar | 4 |
| Alternar Usuário | 256 |
| Hibernar | 64 |
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