Turn off the advertising ID
Désactiver l’ID de publicité
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.
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
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_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 DWordDisable
# 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 DWordRevert to "Not configured"
# Revert to "Not configured": UserProfiles/DisableAdvertisingId
$k = 'HKLM:\Software\Policies\Microsoft\Windows\AdvertisingInfo'
Remove-ItemProperty -Path $k -Name 'DisabledByGroupPolicy' -ErrorAction SilentlyContinue