Configure diagnostic data opt-in settings user interface
Configurer l’interface utilisateur des paramètres d'acceptation des données de diagnostic
Explanation
This policy setting determines whether an end user can change diagnostic data settings in the Settings app.
If you set this policy setting to "Disable diagnostic data opt-in settings", diagnostic data settings are disabled in the Settings app.
If you don't configure this policy setting, or you set it to "Enable diagnostic data opt-in settings", end users can change the device diagnostic settings in the Settings app.
Note:
To set a limit on the amount of diagnostic data that is sent to Microsoft by your organization, use the "Allow Diagnostic Data" policy setting.
Ce paramètre de stratégie détermine si un utilisateur final peut modifier les paramètres de données de diagnostic dans l’application Paramètres.
Si vous définissez ce paramètre de stratégie sur « Désactiver les paramètres d’abonnement aux données de diagnostic », les paramètres de données de diagnostic sont désactivés dans l’application Paramètres.
Si vous ne configurez pas ce paramètre de stratégie ou si vous le définissez sur « Activer les paramètres d’abonnement des données de diagnostic », les utilisateurs finaux peuvent modifier les paramètres de données de diagnostic de l’appareil dans l’application Paramètres.
Remarque :
Pour définir une limite du niveau de données de diagnostic envoyées à Microsoft par votre organisation, utilisez le paramètre de stratégie « Autoriser les données de diagnostic ».
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\DataCollection- Value name
DisableTelemetryOptInSettingsUx
| 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/ConfigureTelemetryOptInSettingsUx
$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 'DisableTelemetryOptInSettingsUx' -Value 1 -Type DWord
#
# Possible options:
# Disable diagnostic data opt-in settings = 1
# Enable diagnostic data opt-in setings = 0
Set-ItemProperty -Path $k -Name 'DisableTelemetryOptInSettingsUx' -Value 1 -Type DWordDisable
# Disable: DataCollection/ConfigureTelemetryOptInSettingsUx
$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 'DisableTelemetryOptInSettingsUx' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": DataCollection/ConfigureTelemetryOptInSettingsUx
$k = 'HKLM:\Software\Policies\Microsoft\Windows\DataCollection'
Remove-ItemProperty -Path $k -Name 'DisableTelemetryOptInSettingsUx' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| ConfigureTelemetryOptInSettingsUx | Drop-down listenum | DisableTelemetryOptInSettingsUx | REG_DWORD | Required · Default choice (UI): #0
|