Configure diagnostic data opt-in change notifications
Configurer les notifications de modification d'acceptation des données de diagnostic
Explanation
This policy setting controls whether notifications are shown, following a change to diagnostic data opt-in settings, on first logon and when the changes occur in settings.
If you set this policy setting to "Disable diagnostic data change notifications", diagnostic data opt-in change notifications will not appear.
If you set this policy setting to "Enable diagnostic data change notifications" or don't configure this policy setting, diagnostic data opt-in change notifications appear at first logon and when the changes occur in Settings.
Ce paramètre de stratégie contrôle si les notifications sont affichées, à la suite d'une modification des paramètres d'acceptation des données de diagnostic, lors de la première connexion et lorsque les modifications sont apportées aux paramètres.
Si vous définissez ce paramètre de stratégie sur « Désactiver les notifications de modification des données de diagnostic », les notifications de modification d'acceptation des données de diagnostic n'apparaissent pas.
Si vous définissez ce paramètre de stratégie sur « Activer les notifications de modification des données de diagnostic » ou si vous ne configurez pas ce paramètre de stratégie, les notifications de modification d'acceptation des données de diagnostic apparaissent à la première connexion et lorsque les modifications se produisent dans les paramètres.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\DataCollection- Value name
DisableTelemetryOptInChangeNotification
| 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: DataCollection/ConfigureTelemetryOptInChangeNotification
$k = 'HKLM:\Software\Policies\Microsoft\Windows\DataCollection'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DisableTelemetryOptInChangeNotification' -Value 1 -Type DWord
#
# Possible options:
# Disable diagnostic data change notifications = 1
# Enable diagnostic data change notifications = 0
Set-ItemProperty -Path $k -Name 'DisableTelemetryOptInChangeNotification' -Value 1 -Type DWordDisable
# Disable: DataCollection/ConfigureTelemetryOptInChangeNotification
$k = 'HKLM:\Software\Policies\Microsoft\Windows\DataCollection'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DisableTelemetryOptInChangeNotification' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": DataCollection/ConfigureTelemetryOptInChangeNotification
$k = 'HKLM:\Software\Policies\Microsoft\Windows\DataCollection'
Remove-ItemProperty -Path $k -Name 'DisableTelemetryOptInChangeNotification' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| ConfigureTelemetryOptInChangeNotification | Drop-down listenum | DisableTelemetryOptInChangeNotification | REG_DWORD | Required · Default choice (UI): #0
|