Block tracking of users' web-browsing activity: registry value TrackingPreventionUserHKCU\Software\Policies\Microsoft\Edge

Policy ID
TrackingPrevention
Scope
Computer Configuration, User Configuration
Supported on
Microsoft Edge version 78, Windows 7 or later
Source
Microsoft Edge Policy Templates (version 155.0.4283.45)
Category
Microsoft Edge

Registry

TrackingPrevention

REG_DWORDUserComputer
Enabled value
Depends on the option value
Element
Block tracking of users' web-browsing activity
Options
ItemStored value
Off (no tracking prevention)0
Basic (blocks harmful trackers, content and ads will be personalized)1
Balanced (blocks harmful trackers and trackers from sites user has not visited; content and ads will be less personalized)2
Strict (blocks harmful trackers and majority of trackers from all sites; content and ads will have minimal personalization. Some parts of sites might not work)3
Apply with .reg · CMD · PowerShell
UserPer-account setting
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Policies\Microsoft\Edge]

; Options (use only one)
; Off (no tracking prevention)
"TrackingPrevention"=dword:00000000
; Basic (blocks harmful trackers, content and ads will be personalized)
"TrackingPrevention"=dword:00000001
; Balanced (blocks harmful trackers and trackers from sites user has not visited; content and ads will be less personalized)
"TrackingPrevention"=dword:00000002
; Strict (blocks harmful trackers and majority of trackers from all sites; content and ads will have minimal personalization. Some parts of sites might not work)
"TrackingPrevention"=dword:00000003
CMD
:: Options (use only one)

:: Off (no tracking prevention)
reg add "HKCU\Software\Policies\Microsoft\Edge" /v "TrackingPrevention" /t REG_DWORD /d 0 /f
:: Basic (blocks harmful trackers, content and ads will be personalized)
reg add "HKCU\Software\Policies\Microsoft\Edge" /v "TrackingPrevention" /t REG_DWORD /d 1 /f
:: Balanced (blocks harmful trackers and trackers from sites user has not visited; content and ads will be less personalized)
reg add "HKCU\Software\Policies\Microsoft\Edge" /v "TrackingPrevention" /t REG_DWORD /d 2 /f
:: Strict (blocks harmful trackers and majority of trackers from all sites; content and ads will have minimal personalization. Some parts of sites might not work)
reg add "HKCU\Software\Policies\Microsoft\Edge" /v "TrackingPrevention" /t REG_DWORD /d 3 /f
PowerShell
# Common: create the key
New-Item -Path 'HKCU:\Software\Policies\Microsoft\Edge' -Force | Out-Null

# Options (use only one)
# Off (no tracking prevention)
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Edge' -Name 'TrackingPrevention' -PropertyType DWord -Value 0 -Force | Out-Null
# Basic (blocks harmful trackers, content and ads will be personalized)
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Edge' -Name 'TrackingPrevention' -PropertyType DWord -Value 1 -Force | Out-Null
# Balanced (blocks harmful trackers and trackers from sites user has not visited; content and ads will be less personalized)
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Edge' -Name 'TrackingPrevention' -PropertyType DWord -Value 2 -Force | Out-Null
# Strict (blocks harmful trackers and majority of trackers from all sites; content and ads will have minimal personalization. Some parts of sites might not work)
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Edge' -Name 'TrackingPrevention' -PropertyType DWord -Value 3 -Force | Out-Null
ComputerMachine-wide setting
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Edge]

; Options (use only one)
; Off (no tracking prevention)
"TrackingPrevention"=dword:00000000
; Basic (blocks harmful trackers, content and ads will be personalized)
"TrackingPrevention"=dword:00000001
; Balanced (blocks harmful trackers and trackers from sites user has not visited; content and ads will be less personalized)
"TrackingPrevention"=dword:00000002
; Strict (blocks harmful trackers and majority of trackers from all sites; content and ads will have minimal personalization. Some parts of sites might not work)
"TrackingPrevention"=dword:00000003
CMD
:: Options (use only one)

:: Off (no tracking prevention)
reg add "HKLM\Software\Policies\Microsoft\Edge" /v "TrackingPrevention" /t REG_DWORD /d 0 /f
:: Basic (blocks harmful trackers, content and ads will be personalized)
reg add "HKLM\Software\Policies\Microsoft\Edge" /v "TrackingPrevention" /t REG_DWORD /d 1 /f
:: Balanced (blocks harmful trackers and trackers from sites user has not visited; content and ads will be less personalized)
reg add "HKLM\Software\Policies\Microsoft\Edge" /v "TrackingPrevention" /t REG_DWORD /d 2 /f
:: Strict (blocks harmful trackers and majority of trackers from all sites; content and ads will have minimal personalization. Some parts of sites might not work)
reg add "HKLM\Software\Policies\Microsoft\Edge" /v "TrackingPrevention" /t REG_DWORD /d 3 /f
PowerShell
# Common: create the key
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Edge' -Force | Out-Null

# Options (use only one)
# Off (no tracking prevention)
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Edge' -Name 'TrackingPrevention' -PropertyType DWord -Value 0 -Force | Out-Null
# Basic (blocks harmful trackers, content and ads will be personalized)
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Edge' -Name 'TrackingPrevention' -PropertyType DWord -Value 1 -Force | Out-Null
# Balanced (blocks harmful trackers and trackers from sites user has not visited; content and ads will be less personalized)
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Edge' -Name 'TrackingPrevention' -PropertyType DWord -Value 2 -Force | Out-Null
# Strict (blocks harmful trackers and majority of trackers from all sites; content and ads will have minimal personalization. Some parts of sites might not work)
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Edge' -Name 'TrackingPrevention' -PropertyType DWord -Value 3 -Force | Out-Null