バッテリ切れの通知動作 のレジストリ値 DCSettingIndexコンピューターHKLM\Software\Policies\Microsoft\Power\PowerSettings\637EA02F-BBCB-4015-8E2C-A1C7B9C0B546

ポリシー ID
DCBatteryDischargeAction0_2
適用対象
コンピューターの構成
サポートされるバージョン
Windows Vista 以降
出典
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (バージョン 1.0)
カテゴリ
システム › 電源の管理 › 通知設定

レジストリ

DCSettingIndex

REG_DWORDコンピューター
有効時の値
オプションの値に依存
要素
バッテリ切れの通知動作
オプション
項目保存される値
何もしない0
スリープ1
休止状態2
シャットダウン3
.reg · CMD · PowerShell で適用する
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Power\PowerSettings\637EA02F-BBCB-4015-8E2C-A1C7B9C0B546]

; 選択項目 (1 つだけ使用)
; 何もしない
"DCSettingIndex"=dword:00000000
; スリープ
"DCSettingIndex"=dword:00000001
; 休止状態
"DCSettingIndex"=dword:00000002
; シャットダウン
"DCSettingIndex"=dword:00000003
CMD
:: 選択項目 (1 つだけ使用)

:: 何もしない
reg add "HKLM\Software\Policies\Microsoft\Power\PowerSettings\637EA02F-BBCB-4015-8E2C-A1C7B9C0B546" /v "DCSettingIndex" /t REG_DWORD /d 0 /f
:: スリープ
reg add "HKLM\Software\Policies\Microsoft\Power\PowerSettings\637EA02F-BBCB-4015-8E2C-A1C7B9C0B546" /v "DCSettingIndex" /t REG_DWORD /d 1 /f
:: 休止状態
reg add "HKLM\Software\Policies\Microsoft\Power\PowerSettings\637EA02F-BBCB-4015-8E2C-A1C7B9C0B546" /v "DCSettingIndex" /t REG_DWORD /d 2 /f
:: シャットダウン
reg add "HKLM\Software\Policies\Microsoft\Power\PowerSettings\637EA02F-BBCB-4015-8E2C-A1C7B9C0B546" /v "DCSettingIndex" /t REG_DWORD /d 3 /f
PowerShell
# 共通: キーを作成
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Power\PowerSettings\637EA02F-BBCB-4015-8E2C-A1C7B9C0B546' -Force | Out-Null

# 選択項目 (1 つだけ使用)
# 何もしない
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Power\PowerSettings\637EA02F-BBCB-4015-8E2C-A1C7B9C0B546' -Name 'DCSettingIndex' -PropertyType DWord -Value 0 -Force | Out-Null
# スリープ
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Power\PowerSettings\637EA02F-BBCB-4015-8E2C-A1C7B9C0B546' -Name 'DCSettingIndex' -PropertyType DWord -Value 1 -Force | Out-Null
# 休止状態
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Power\PowerSettings\637EA02F-BBCB-4015-8E2C-A1C7B9C0B546' -Name 'DCSettingIndex' -PropertyType DWord -Value 2 -Force | Out-Null
# シャットダウン
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Power\PowerSettings\637EA02F-BBCB-4015-8E2C-A1C7B9C0B546' -Name 'DCSettingIndex' -PropertyType DWord -Value 3 -Force | Out-Null