既定の同意を構成する のレジストリ値 DefaultConsent (HKLM Consent)コンピューターHKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting\Consent
- ポリシー ID
- WerDefaultConsent_2
- 適用対象
- コンピューターの構成
- サポートされるバージョン
- 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_LOCAL_MACHINE\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 "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting\Consent" /v "DefaultConsent" /t REG_DWORD /d 1 /f :: パラメーターを送信する reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting\Consent" /v "DefaultConsent" /t REG_DWORD /d 2 /f :: パラメーターおよびその他の安全なデータを送信する reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting\Consent" /v "DefaultConsent" /t REG_DWORD /d 3 /f :: すべてのデータを送信する reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting\Consent" /v "DefaultConsent" /t REG_DWORD /d 4 /f
PowerShell
# 共通: キーを作成 New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting\Consent' -Force | Out-Null # 選択項目 (1 つだけ使用) # データを送信する前に常に確認する New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting\Consent' -Name 'DefaultConsent' -PropertyType DWord -Value 1 -Force | Out-Null # パラメーターを送信する New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting\Consent' -Name 'DefaultConsent' -PropertyType DWord -Value 2 -Force | Out-Null # パラメーターおよびその他の安全なデータを送信する New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting\Consent' -Name 'DefaultConsent' -PropertyType DWord -Value 3 -Force | Out-Null # すべてのデータを送信する New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting\Consent' -Name 'DefaultConsent' -PropertyType DWord -Value 4 -Force | Out-Null