Cambia il pulsante di alimentazione del menu Start: valore del Registro di sistema PowerButtonActionUtenteHKCU\Software\Policies\Microsoft\Windows\Explorer

ID criterio
PowerButtonAction
Ambito
Configurazione utente
Supportato in
Windows Server 2008 R2 e Windows 7
Origine
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (versione 1.0)
Categoria
Menu Start e barra delle applicazioni

Registro

PowerButtonAction

REG_DWORDUtente
Valore abilitato
Dipende dal valore dell'opzione
Elemento
Scegliere una delle azioni seguenti
Opzioni
VoceValore memorizzato
Arresta il sistema2
Sospensione16
Disconnetti1
Blocca512
Riavvia il sistema4
Cambia utente256
Ibernazione64
Applica con .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

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

; Opzioni (usarne solo una)
; Arresta il sistema
"PowerButtonAction"=dword:00000002
; Sospensione
"PowerButtonAction"=dword:00000010
; Disconnetti
"PowerButtonAction"=dword:00000001
; Blocca
"PowerButtonAction"=dword:00000200
; Riavvia il sistema
"PowerButtonAction"=dword:00000004
; Cambia utente
"PowerButtonAction"=dword:00000100
; Ibernazione
"PowerButtonAction"=dword:00000040
CMD
:: Opzioni (usarne solo una)

:: Arresta il sistema
reg add "HKCU\Software\Policies\Microsoft\Windows\Explorer" /v "PowerButtonAction" /t REG_DWORD /d 2 /f
:: Sospensione
reg add "HKCU\Software\Policies\Microsoft\Windows\Explorer" /v "PowerButtonAction" /t REG_DWORD /d 16 /f
:: Disconnetti
reg add "HKCU\Software\Policies\Microsoft\Windows\Explorer" /v "PowerButtonAction" /t REG_DWORD /d 1 /f
:: Blocca
reg add "HKCU\Software\Policies\Microsoft\Windows\Explorer" /v "PowerButtonAction" /t REG_DWORD /d 512 /f
:: Riavvia il sistema
reg add "HKCU\Software\Policies\Microsoft\Windows\Explorer" /v "PowerButtonAction" /t REG_DWORD /d 4 /f
:: Cambia utente
reg add "HKCU\Software\Policies\Microsoft\Windows\Explorer" /v "PowerButtonAction" /t REG_DWORD /d 256 /f
:: Ibernazione
reg add "HKCU\Software\Policies\Microsoft\Windows\Explorer" /v "PowerButtonAction" /t REG_DWORD /d 64 /f
PowerShell
# Comune: crea la chiave
New-Item -Path 'HKCU:\Software\Policies\Microsoft\Windows\Explorer' -Force | Out-Null

# Opzioni (usarne solo una)
# Arresta il sistema
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\Explorer' -Name 'PowerButtonAction' -PropertyType DWord -Value 2 -Force | Out-Null
# Sospensione
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\Explorer' -Name 'PowerButtonAction' -PropertyType DWord -Value 16 -Force | Out-Null
# Disconnetti
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\Explorer' -Name 'PowerButtonAction' -PropertyType DWord -Value 1 -Force | Out-Null
# Blocca
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\Explorer' -Name 'PowerButtonAction' -PropertyType DWord -Value 512 -Force | Out-Null
# Riavvia il sistema
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\Explorer' -Name 'PowerButtonAction' -PropertyType DWord -Value 4 -Force | Out-Null
# Cambia utente
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\Explorer' -Name 'PowerButtonAction' -PropertyType DWord -Value 256 -Force | Out-Null
# Ibernazione
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\Explorer' -Name 'PowerButtonAction' -PropertyType DWord -Value 64 -Force | Out-Null