診断データを許可する のレジストリ値 AllowTelemetryコンピューターHKLM\Software\Policies\Microsoft\Windows\DataCollection

ポリシー ID
AllowTelemetry
適用対象
コンピューターの構成、ユーザーの構成
サポートされるバージョン
Windows Server 2016 以降または Windows 10 以降
出典
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (バージョン 1.0)
カテゴリ
Windows コンポーネント › データの収集とプレビュー ビルド

レジストリ

AllowTelemetry

REG_DWORDコンピューターユーザー
有効時の値
オプションの値に依存
要素
-
オプション
項目保存される値
診断データ オフ (推奨されません)0
必要な診断データを送信する1
オプションの診断データを送信する3
.reg · CMD · PowerShell で適用する
コンピューターコンピューター全体の設定
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\DataCollection]

; 選択項目 (1 つだけ使用)
; 診断データ オフ (推奨されません)
"AllowTelemetry"=dword:00000000
; 必要な診断データを送信する
"AllowTelemetry"=dword:00000001
; オプションの診断データを送信する
"AllowTelemetry"=dword:00000003
CMD
:: 選択項目 (1 つだけ使用)

:: 診断データ オフ (推奨されません)
reg add "HKLM\Software\Policies\Microsoft\Windows\DataCollection" /v "AllowTelemetry" /t REG_DWORD /d 0 /f
:: 必要な診断データを送信する
reg add "HKLM\Software\Policies\Microsoft\Windows\DataCollection" /v "AllowTelemetry" /t REG_DWORD /d 1 /f
:: オプションの診断データを送信する
reg add "HKLM\Software\Policies\Microsoft\Windows\DataCollection" /v "AllowTelemetry" /t REG_DWORD /d 3 /f
PowerShell
# 共通: キーを作成
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\DataCollection' -Force | Out-Null

# 選択項目 (1 つだけ使用)
# 診断データ オフ (推奨されません)
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\DataCollection' -Name 'AllowTelemetry' -PropertyType DWord -Value 0 -Force | Out-Null
# 必要な診断データを送信する
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\DataCollection' -Name 'AllowTelemetry' -PropertyType DWord -Value 1 -Force | Out-Null
# オプションの診断データを送信する
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\DataCollection' -Name 'AllowTelemetry' -PropertyType DWord -Value 3 -Force | Out-Null
ユーザーアカウントごとの設定
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\DataCollection]

; 選択項目 (1 つだけ使用)
; 診断データ オフ (推奨されません)
"AllowTelemetry"=dword:00000000
; 必要な診断データを送信する
"AllowTelemetry"=dword:00000001
; オプションの診断データを送信する
"AllowTelemetry"=dword:00000003
CMD
:: 選択項目 (1 つだけ使用)

:: 診断データ オフ (推奨されません)
reg add "HKCU\Software\Policies\Microsoft\Windows\DataCollection" /v "AllowTelemetry" /t REG_DWORD /d 0 /f
:: 必要な診断データを送信する
reg add "HKCU\Software\Policies\Microsoft\Windows\DataCollection" /v "AllowTelemetry" /t REG_DWORD /d 1 /f
:: オプションの診断データを送信する
reg add "HKCU\Software\Policies\Microsoft\Windows\DataCollection" /v "AllowTelemetry" /t REG_DWORD /d 3 /f
PowerShell
# 共通: キーを作成
New-Item -Path 'HKCU:\Software\Policies\Microsoft\Windows\DataCollection' -Force | Out-Null

# 選択項目 (1 つだけ使用)
# 診断データ オフ (推奨されません)
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\DataCollection' -Name 'AllowTelemetry' -PropertyType DWord -Value 0 -Force | Out-Null
# 必要な診断データを送信する
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\DataCollection' -Name 'AllowTelemetry' -PropertyType DWord -Value 1 -Force | Out-Null
# オプションの診断データを送信する
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\DataCollection' -Name 'AllowTelemetry' -PropertyType DWord -Value 3 -Force | Out-Null