電源ボタンの操作を選択する (電源接続時) のレジストリ値 ACSettingIndexコンピューターHKLM\Software\Policies\Microsoft\Power\PowerSettings\7648EFA3-DD9C-4E3E-B566-50F929386280
- ポリシー ID
- ACPowerButtonAction_2
- 適用対象
- コンピューターの構成
- サポートされるバージョン
- Windows Vista 以降
- 出典
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (バージョン 1.0)
- カテゴリ
- システム › 電源の管理 › ボタンの設定
レジストリ
ACSettingIndex
REG_DWORDコンピューター- 有効時の値
- オプションの値に依存
- 要素
- 電源ボタンの操作
| 項目 | 保存される値 |
|---|---|
| 何もしない | 0 |
| スリープ | 1 |
| 休止状態 | 2 |
| シャットダウン | 3 |
.reg · CMD · PowerShell で適用する
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Power\PowerSettings\7648EFA3-DD9C-4E3E-B566-50F929386280] ; 選択項目 (1 つだけ使用) ; 何もしない "ACSettingIndex"=dword:00000000 ; スリープ "ACSettingIndex"=dword:00000001 ; 休止状態 "ACSettingIndex"=dword:00000002 ; シャットダウン "ACSettingIndex"=dword:00000003
CMD
:: 選択項目 (1 つだけ使用) :: 何もしない reg add "HKLM\Software\Policies\Microsoft\Power\PowerSettings\7648EFA3-DD9C-4E3E-B566-50F929386280" /v "ACSettingIndex" /t REG_DWORD /d 0 /f :: スリープ reg add "HKLM\Software\Policies\Microsoft\Power\PowerSettings\7648EFA3-DD9C-4E3E-B566-50F929386280" /v "ACSettingIndex" /t REG_DWORD /d 1 /f :: 休止状態 reg add "HKLM\Software\Policies\Microsoft\Power\PowerSettings\7648EFA3-DD9C-4E3E-B566-50F929386280" /v "ACSettingIndex" /t REG_DWORD /d 2 /f :: シャットダウン reg add "HKLM\Software\Policies\Microsoft\Power\PowerSettings\7648EFA3-DD9C-4E3E-B566-50F929386280" /v "ACSettingIndex" /t REG_DWORD /d 3 /f
PowerShell
# 共通: キーを作成 New-Item -Path 'HKLM:\Software\Policies\Microsoft\Power\PowerSettings\7648EFA3-DD9C-4E3E-B566-50F929386280' -Force | Out-Null # 選択項目 (1 つだけ使用) # 何もしない New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Power\PowerSettings\7648EFA3-DD9C-4E3E-B566-50F929386280' -Name 'ACSettingIndex' -PropertyType DWord -Value 0 -Force | Out-Null # スリープ New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Power\PowerSettings\7648EFA3-DD9C-4E3E-B566-50F929386280' -Name 'ACSettingIndex' -PropertyType DWord -Value 1 -Force | Out-Null # 休止状態 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Power\PowerSettings\7648EFA3-DD9C-4E3E-B566-50F929386280' -Name 'ACSettingIndex' -PropertyType DWord -Value 2 -Force | Out-Null # シャットダウン New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Power\PowerSettings\7648EFA3-DD9C-4E3E-B566-50F929386280' -Name 'ACSettingIndex' -PropertyType DWord -Value 3 -Force | Out-Null