[スタート] メニューの電源ボタンを変更する のレジストリ値 PowerButtonActionユーザーHKCU\Software\Policies\Microsoft\Windows\Explorer
- ポリシー ID
- PowerButtonAction
- 適用対象
- ユーザーの構成
- サポートされるバージョン
- Windows Server 2008 R2 および Windows 7
- 出典
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (バージョン 1.0)
- カテゴリ
- タスク バーと [スタート] メニュー
レジストリ
PowerButtonAction
REG_DWORDユーザー- 有効時の値
- オプションの値に依存
- 要素
- 次の操作から 1 つ選択してください
| 項目 | 保存される値 |
|---|---|
| シャットダウン | 2 |
| スリープ | 16 |
| ログオフ | 1 |
| ロック | 512 |
| 再起動 | 4 |
| ユーザーの切り替え | 256 |
| 休止状態 | 64 |
.reg · CMD · PowerShell で適用する
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Explorer] ; 選択項目 (1 つだけ使用) ; シャットダウン "PowerButtonAction"=dword:00000002 ; スリープ "PowerButtonAction"=dword:00000010 ; ログオフ "PowerButtonAction"=dword:00000001 ; ロック "PowerButtonAction"=dword:00000200 ; 再起動 "PowerButtonAction"=dword:00000004 ; ユーザーの切り替え "PowerButtonAction"=dword:00000100 ; 休止状態 "PowerButtonAction"=dword:00000040
CMD
:: 選択項目 (1 つだけ使用) :: シャットダウン reg add "HKCU\Software\Policies\Microsoft\Windows\Explorer" /v "PowerButtonAction" /t REG_DWORD /d 2 /f :: スリープ reg add "HKCU\Software\Policies\Microsoft\Windows\Explorer" /v "PowerButtonAction" /t REG_DWORD /d 16 /f :: ログオフ reg add "HKCU\Software\Policies\Microsoft\Windows\Explorer" /v "PowerButtonAction" /t REG_DWORD /d 1 /f :: ロック reg add "HKCU\Software\Policies\Microsoft\Windows\Explorer" /v "PowerButtonAction" /t REG_DWORD /d 512 /f :: 再起動 reg add "HKCU\Software\Policies\Microsoft\Windows\Explorer" /v "PowerButtonAction" /t REG_DWORD /d 4 /f :: ユーザーの切り替え reg add "HKCU\Software\Policies\Microsoft\Windows\Explorer" /v "PowerButtonAction" /t REG_DWORD /d 256 /f :: 休止状態 reg add "HKCU\Software\Policies\Microsoft\Windows\Explorer" /v "PowerButtonAction" /t REG_DWORD /d 64 /f
PowerShell
# 共通: キーを作成 New-Item -Path 'HKCU:\Software\Policies\Microsoft\Windows\Explorer' -Force | Out-Null # 選択項目 (1 つだけ使用) # シャットダウン New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\Explorer' -Name 'PowerButtonAction' -PropertyType DWord -Value 2 -Force | Out-Null # スリープ New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\Explorer' -Name 'PowerButtonAction' -PropertyType DWord -Value 16 -Force | Out-Null # ログオフ New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\Explorer' -Name 'PowerButtonAction' -PropertyType DWord -Value 1 -Force | Out-Null # ロック New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\Explorer' -Name 'PowerButtonAction' -PropertyType DWord -Value 512 -Force | Out-Null # 再起動 New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\Explorer' -Name 'PowerButtonAction' -PropertyType DWord -Value 4 -Force | Out-Null # ユーザーの切り替え New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\Explorer' -Name 'PowerButtonAction' -PropertyType DWord -Value 256 -Force | Out-Null # 休止状態 New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\Explorer' -Name 'PowerButtonAction' -PropertyType DWord -Value 64 -Force | Out-Null