既定の同意を構成する のレジストリ値 DefaultConsent (HKCU Consent)ユーザーHKCU\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting\Consent

ポリシー ID
WerDefaultConsent_1
適用対象
ユーザーの構成
サポートされるバージョン
Windows 8.1、Windows 8、Windows 7、および Windows Vista のみ
出典
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (バージョン 1.0)
カテゴリ
Windows コンポーネント › Windows エラー報告 › 同意

レジストリ

DefaultConsent

REG_DWORDユーザー
有効時の値
オプションの値に依存
要素
同意レベル
オプション
項目保存される値
データを送信する前に常に確認する1
パラメーターを送信する2
パラメーターおよびその他の安全なデータを送信する3
すべてのデータを送信する4
.reg · CMD · PowerShell で適用する
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting\Consent]

; 選択項目 (1 つだけ使用)
; データを送信する前に常に確認する
"DefaultConsent"=dword:00000001
; パラメーターを送信する
"DefaultConsent"=dword:00000002
; パラメーターおよびその他の安全なデータを送信する
"DefaultConsent"=dword:00000003
; すべてのデータを送信する
"DefaultConsent"=dword:00000004
CMD
:: 選択項目 (1 つだけ使用)

:: データを送信する前に常に確認する
reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting\Consent" /v "DefaultConsent" /t REG_DWORD /d 1 /f
:: パラメーターを送信する
reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting\Consent" /v "DefaultConsent" /t REG_DWORD /d 2 /f
:: パラメーターおよびその他の安全なデータを送信する
reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting\Consent" /v "DefaultConsent" /t REG_DWORD /d 3 /f
:: すべてのデータを送信する
reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting\Consent" /v "DefaultConsent" /t REG_DWORD /d 4 /f
PowerShell
# 共通: キーを作成
New-Item -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting\Consent' -Force | Out-Null

# 選択項目 (1 つだけ使用)
# データを送信する前に常に確認する
New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting\Consent' -Name 'DefaultConsent' -PropertyType DWord -Value 1 -Force | Out-Null
# パラメーターを送信する
New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting\Consent' -Name 'DefaultConsent' -PropertyType DWord -Value 2 -Force | Out-Null
# パラメーターおよびその他の安全なデータを送信する
New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting\Consent' -Name 'DefaultConsent' -PropertyType DWord -Value 3 -Force | Out-Null
# すべてのデータを送信する
New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting\Consent' -Name 'DefaultConsent' -PropertyType DWord -Value 4 -Force | Out-Null