Configure collection of browsing data for Desktop Analytics: registry value MicrosoftEdgeDataOptInUserHKCU\Software\Microsoft\Windows\CurrentVersion\Policies\DataCollection
- Policy ID
- ConfigureTelemetryForMicrosoft365Analytics
- Scope
- Computer Configuration, User Configuration
- Supported on
- Microsoft Edge on Windows 10, Version 1803 or later
- Source
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
- Category
- Windows Components › Data Collection and Preview Builds
Registry
MicrosoftEdgeDataOptIn
REG_DWORDUserComputer…\Software\Microsoft\Windows\CurrentVersion\Policies\DataCollectionHKCU\Software\Microsoft\Windows\CurrentVersion\Policies\DataCollection Current key
HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\DataCollection
HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\DataCollection
- Enabled value
- Depends on the option value
- Element
- Configure telemetry collection
| Item | Stored value |
|---|---|
| Do not allow sending intranet or internet history | 0 |
| Allow sending intranet history only | 1 |
| Allow sending internet history only | 2 |
| Allow sending both intranet and internet history | 3 |
Apply with .reg · CMD · PowerShell
UserPer-account setting
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\DataCollection] ; Options (use only one) ; Do not allow sending intranet or internet history "MicrosoftEdgeDataOptIn"=dword:00000000 ; Allow sending intranet history only "MicrosoftEdgeDataOptIn"=dword:00000001 ; Allow sending internet history only "MicrosoftEdgeDataOptIn"=dword:00000002 ; Allow sending both intranet and internet history "MicrosoftEdgeDataOptIn"=dword:00000003
CMD
:: Options (use only one) :: Do not allow sending intranet or internet history reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\DataCollection" /v "MicrosoftEdgeDataOptIn" /t REG_DWORD /d 0 /f :: Allow sending intranet history only reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\DataCollection" /v "MicrosoftEdgeDataOptIn" /t REG_DWORD /d 1 /f :: Allow sending internet history only reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\DataCollection" /v "MicrosoftEdgeDataOptIn" /t REG_DWORD /d 2 /f :: Allow sending both intranet and internet history reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\DataCollection" /v "MicrosoftEdgeDataOptIn" /t REG_DWORD /d 3 /f
PowerShell
# Common: create the key New-Item -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\DataCollection' -Force | Out-Null # Options (use only one) # Do not allow sending intranet or internet history New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\DataCollection' -Name 'MicrosoftEdgeDataOptIn' -PropertyType DWord -Value 0 -Force | Out-Null # Allow sending intranet history only New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\DataCollection' -Name 'MicrosoftEdgeDataOptIn' -PropertyType DWord -Value 1 -Force | Out-Null # Allow sending internet history only New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\DataCollection' -Name 'MicrosoftEdgeDataOptIn' -PropertyType DWord -Value 2 -Force | Out-Null # Allow sending both intranet and internet history New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\DataCollection' -Name 'MicrosoftEdgeDataOptIn' -PropertyType DWord -Value 3 -Force | Out-Null
ComputerMachine-wide setting
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\DataCollection] ; Options (use only one) ; Do not allow sending intranet or internet history "MicrosoftEdgeDataOptIn"=dword:00000000 ; Allow sending intranet history only "MicrosoftEdgeDataOptIn"=dword:00000001 ; Allow sending internet history only "MicrosoftEdgeDataOptIn"=dword:00000002 ; Allow sending both intranet and internet history "MicrosoftEdgeDataOptIn"=dword:00000003
CMD
:: Options (use only one) :: Do not allow sending intranet or internet history reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\DataCollection" /v "MicrosoftEdgeDataOptIn" /t REG_DWORD /d 0 /f :: Allow sending intranet history only reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\DataCollection" /v "MicrosoftEdgeDataOptIn" /t REG_DWORD /d 1 /f :: Allow sending internet history only reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\DataCollection" /v "MicrosoftEdgeDataOptIn" /t REG_DWORD /d 2 /f :: Allow sending both intranet and internet history reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\DataCollection" /v "MicrosoftEdgeDataOptIn" /t REG_DWORD /d 3 /f
PowerShell
# Common: create the key New-Item -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\DataCollection' -Force | Out-Null # Options (use only one) # Do not allow sending intranet or internet history New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\DataCollection' -Name 'MicrosoftEdgeDataOptIn' -PropertyType DWord -Value 0 -Force | Out-Null # Allow sending intranet history only New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\DataCollection' -Name 'MicrosoftEdgeDataOptIn' -PropertyType DWord -Value 1 -Force | Out-Null # Allow sending internet history only New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\DataCollection' -Name 'MicrosoftEdgeDataOptIn' -PropertyType DWord -Value 2 -Force | Out-Null # Allow sending both intranet and internet history New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\DataCollection' -Name 'MicrosoftEdgeDataOptIn' -PropertyType DWord -Value 3 -Force | Out-Null