Open in the explorer

Turn off the advertising ID

Désactiver l’ID de publicité

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › System › User Profiles FR: Configuration ordinateur › Stratégies › Modèles d'administration › Système › Profils utilisateur
Supported on
At least Windows Server 2012 R2, Windows 8.1 or Windows RT 8.1 FR: Au minimum Windows Server 2012 R2, Windows 8.1 ou Windows RT 8.1
ADMX file
UserProfiles.admx
Internal name
UserProfiles/DisableAdvertisingId

Explanation

This policy setting turns off the advertising ID, preventing apps from using the ID for experiences across apps.

If you enable this policy setting, the advertising ID is turned off. Apps can't use the ID for experiences across apps.

If you disable or do not configure this policy setting, users can control whether apps can use the advertising ID for experiences across apps.

French text from Windows 11 26H2

Ce paramètre de stratégie désactive l’ID de publicité, empêchant ainsi les applications d’utiliser l’ID pour des expériences dans plusieurs applications.

Si vous activez ce paramètre de stratégie, l’ID de publicité est désactivé. Les applications ne peuvent pas utiliser l’ID pour des expériences dans plusieurs applications.

Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, les utilisateurs sont en mesure de décider si les applications peuvent utiliser l’ID de publicité pour des expériences dans plusieurs applications.

Use cases

Turns off the advertising ID, which apps use to deliver personalised experiences across apps. When enabled, the policy forces the ID off on the device; when disabled or not configured, the user decides in settings.

Watch the inverted labels in the equivalent CSP policy: “Enabled” (1) means the policy is enforced and the ID is off, whereas “Disabled” (0) merely hands control back to the user. The setting has device scope and covers the Pro, Enterprise and Education editions.

Microsoft source: Policy CSP - Privacy

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\AdvertisingInfo
Value name
DisabledByGroupPolicy
StateValue written
EnabledREG_DWORD = 1
DisabledREG_DWORD = 0

PowerShell

PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.

Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.

Enable

# Enable: UserProfiles/DisableAdvertisingId
$k = 'HKLM:\Software\Policies\Microsoft\Windows\AdvertisingInfo'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DisabledByGroupPolicy' -Value 1 -Type DWord

Disable

# Disable: UserProfiles/DisableAdvertisingId
$k = 'HKLM:\Software\Policies\Microsoft\Windows\AdvertisingInfo'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DisabledByGroupPolicy' -Value 0 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": UserProfiles/DisableAdvertisingId
$k = 'HKLM:\Software\Policies\Microsoft\Windows\AdvertisingInfo'
Remove-ItemProperty -Path $k -Name 'DisabledByGroupPolicy' -ErrorAction SilentlyContinue

Availability