Allow Diagnostic Data: registry value AllowTelemetryUserHKCU\Software\Policies\Microsoft\Windows\DataCollection
- Policy ID
- AllowTelemetry
- Scope
- Computer Configuration, User Configuration
- Supported on
- At least Windows Server 2016, Windows 10
- Source
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
- Category
- Windows Components › Data Collection and Preview Builds
Registry
AllowTelemetry
REG_DWORDUserComputer…\Software\Policies\Microsoft\Windows\DataCollectionHKCU\Software\Policies\Microsoft\Windows\DataCollection Current key
HKLM\Software\Policies\Microsoft\Windows\DataCollection
HKLM\Software\Policies\Microsoft\Windows\DataCollection
- Enabled value
- Depends on the option value
- Element
- -
| Item | Stored value |
|---|---|
| Diagnostic data off (not recommended) | 0 |
| Send required diagnostic data | 1 |
| Send optional diagnostic data | 3 |
Apply with .reg · CMD · PowerShell
UserPer-account setting
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\DataCollection] ; Options (use only one) ; Diagnostic data off (not recommended) "AllowTelemetry"=dword:00000000 ; Send required diagnostic data "AllowTelemetry"=dword:00000001 ; Send optional diagnostic data "AllowTelemetry"=dword:00000003
CMD
:: Options (use only one) :: Diagnostic data off (not recommended) reg add "HKCU\Software\Policies\Microsoft\Windows\DataCollection" /v "AllowTelemetry" /t REG_DWORD /d 0 /f :: Send required diagnostic data reg add "HKCU\Software\Policies\Microsoft\Windows\DataCollection" /v "AllowTelemetry" /t REG_DWORD /d 1 /f :: Send optional diagnostic data reg add "HKCU\Software\Policies\Microsoft\Windows\DataCollection" /v "AllowTelemetry" /t REG_DWORD /d 3 /f
PowerShell
# Common: create the key New-Item -Path 'HKCU:\Software\Policies\Microsoft\Windows\DataCollection' -Force | Out-Null # Options (use only one) # Diagnostic data off (not recommended) New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\DataCollection' -Name 'AllowTelemetry' -PropertyType DWord -Value 0 -Force | Out-Null # Send required diagnostic data New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\DataCollection' -Name 'AllowTelemetry' -PropertyType DWord -Value 1 -Force | Out-Null # Send optional diagnostic data New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\DataCollection' -Name 'AllowTelemetry' -PropertyType DWord -Value 3 -Force | Out-Null
ComputerMachine-wide setting
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\DataCollection] ; Options (use only one) ; Diagnostic data off (not recommended) "AllowTelemetry"=dword:00000000 ; Send required diagnostic data "AllowTelemetry"=dword:00000001 ; Send optional diagnostic data "AllowTelemetry"=dword:00000003
CMD
:: Options (use only one) :: Diagnostic data off (not recommended) reg add "HKLM\Software\Policies\Microsoft\Windows\DataCollection" /v "AllowTelemetry" /t REG_DWORD /d 0 /f :: Send required diagnostic data reg add "HKLM\Software\Policies\Microsoft\Windows\DataCollection" /v "AllowTelemetry" /t REG_DWORD /d 1 /f :: Send optional diagnostic data reg add "HKLM\Software\Policies\Microsoft\Windows\DataCollection" /v "AllowTelemetry" /t REG_DWORD /d 3 /f
PowerShell
# Common: create the key New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\DataCollection' -Force | Out-Null # Options (use only one) # Diagnostic data off (not recommended) New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\DataCollection' -Name 'AllowTelemetry' -PropertyType DWord -Value 0 -Force | Out-Null # Send required diagnostic data New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\DataCollection' -Name 'AllowTelemetry' -PropertyType DWord -Value 1 -Force | Out-Null # Send optional diagnostic data New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\DataCollection' -Name 'AllowTelemetry' -PropertyType DWord -Value 3 -Force | Out-Null