Open in the explorer

Allow Diagnostic Data

Autoriser les données de diagnostic

Type
Computer and user
GPO path
Computer Configuration › Policies › Administrative Templates › Windows Components › Data Collection and Preview Builds User Configuration › Policies › Administrative Templates › Windows Components › Data Collection and Preview Builds FR: Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Collecte des données et versions d’évaluation PreviewFR: Configuration utilisateur › Stratégies › Modèles d'administration › Composants Windows › Collecte des données et versions d’évaluation Preview
Supported on
At least Windows Server 2016, Windows 10 FR: Au moins Windows Server 2016, Windows 10
ADMX file
DataCollection.admx
Internal name
DataCollection/AllowTelemetry

Explanation

By configuring this policy setting you can adjust what diagnostic data is collected from Windows. This policy setting also restricts the user from increasing the amount of diagnostic data collection via the Settings app. The diagnostic data collected under this policy impacts the operating system and apps that are considered part of Windows and does not apply to any additional apps installed by your organization.

- Diagnostic data off (not recommended). Using this value, no diagnostic data is sent from the device. This value is only supported on Enterprise, Education, and Server editions.
- Send required diagnostic data. This is the minimum diagnostic data necessary to keep Windows secure, up to date, and performing as expected. Using this value disables the "Optional diagnostic data" control in the Settings app.
- Send optional diagnostic data. Additional diagnostic data is collected that helps us to detect, diagnose and fix issues, as well as make product improvements. Required diagnostic data will always be included when you choose to send optional diagnostic data. Optional diagnostic data can also include diagnostic log files and crash dumps. Use the "Limit Dump Collection" and the "Limit Diagnostic Log Collection" policies for more granular control of what optional diagnostic data is sent.

If you disable or do not configure this policy setting, the device will send required diagnostic data and the end user can choose whether to send optional diagnostic data from the Settings app.

Note:
The "Configure diagnostic data opt-in settings user interface" group policy can be used to prevent end users from changing their data collection settings.

French text from Windows 11 26H2

La configuration de ce paramètre de stratégie vous permet de modifier les données de diagnostic collectées à partir de Windows. Ce paramètre de stratégie empêche également l’utilisateur d’augmenter la quantité de collecte de données de diagnostic via l’application Paramètres. Les données de diagnostic collectées dans le cadre de cette stratégie ont un impact sur le système d’exploitation et les applications considérées comme faisant partie de Windows et ne s’appliquent pas aux applications supplémentaires installées par votre organisation.

– Données de diagnostic désactivées (non recommandé). Cette valeur permet de ne pas envoyer de données de diagnostic à partir de l'appareil. Cette valeur est prise en charge uniquement pour les éditions Entreprise, Éducation et Server.
– Envoyer les données de diagnostic requises. Ce sont les données de diagnostic minimales nécessaires pour assurer la sécurité, la mise à jour et la bonne exécution de Windows. L’utilisation de cette valeur désactive le contrôle « Données de diagnostic facultatives » dans l’application Paramètres.
– Envoyer des données de diagnostic facultatives. Des données de diagnostic supplémentaires sont collectées pour nous permettre de détecter, diagnostiquer et de résoudre les problèmes, ainsi que d’améliorer les produits. Les données de diagnostic requises sont toujours incluses lorsque vous choisissez d’envoyer des données de diagnostic facultatives. Les données de diagnostic facultatives peuvent également inclure des fichiers journaux de diagnostic et des images mémoire après incident. Utiliser les stratégies « Limiter la collecte des vidages » et « Limiter la collecte de journaux de diagnostic » pour un contrôle plus granulaire des données de diagnostic facultatives qui sont envoyées.

Si vous désactivez ou ne configurez pas ce paramètre de stratégie, l’appareil envoie les données de diagnostic requises et l’utilisateur final peut choisir d’envoyer des données de diagnostic facultatives à partir de l’application Paramètres.

Remarque :
La stratégie de groupe « Configurer l'interface utilisateur des paramètres d’acceptation de données de diagnostic » peut être utilisée pour empêcher les utilisateurs finaux de modifier leurs paramètres de collection de données.

Use cases

Sets the level of diagnostic data Windows sends to Microsoft: Off (0, only on Enterprise, Education and Server), Required (1, the default since Windows 10 1903) or Optional (3). For most fleets, Required is the right trade-off; it is also the minimum recommended if you rely on Windows Update.

With Off, no Windows Update information is collected, so update failures are no longer reported and Microsoft cannot fix them. Do not block settings-win.data.microsoft.com (remote configuration of diagnostics) and avoid blocking login.live.com (device authentication).

Microsoft source: Configure Windows diagnostic data in your organization

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\DataCollection
HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\DataCollection
Value name
not defined in the ADMX

Enable / disable values: not defined in the ADMX (see the options below).

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.

Computer (HKLM)

Enable

# Enable: DataCollection/AllowTelemetry
$k = 'HKLM:\Software\Policies\Microsoft\Windows\DataCollection'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
#
# Possible options:
#   Diagnostic data off (not recommended) = 0
#   Send required diagnostic data = 1
#   Send optional diagnostic data = 3
Set-ItemProperty -Path $k -Name 'AllowTelemetry' -Value 1 -Type DWord

Disable

# Disable: DataCollection/AllowTelemetry
# No value is written in the "Disabled" state (nothing defined in the ADMX)

Revert to "Not configured"

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

User (HKCU)

Enable

Disable

Revert to "Not configured"

Options (1)

LabelControlRegistry valueREG typeConstraints / details
AllowTelemetryDrop-down listenumAllowTelemetryREG_DWORD
Required · Default choice (UI): #1
LabelValue
Diagnostic data off (not recommended)REG_DWORD = 0
Send required diagnostic dataREG_DWORD = 1
Send optional diagnostic dataREG_DWORD = 3

Availability