Open in the explorer

Limit optional diagnostic data for Desktop Analytics

Limiter les données de diagnostic facultatives pour Analyses du bureau

Type
Computer
GPO path
Computer 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 Preview
Supported on
At least Windows Server 2016, Windows 10 Version 1709 FR: Windows Server 2016, Windows 10 version 1709 ou versions supérieures
ADMX file
DataCollection.admx
Internal name
DataCollection/LimitEnhancedDiagnosticDataWindowsAnalytics

Explanation

This policy setting, in combination with the "Allow Diagnostic Data" policy setting, enables organizations to send the minimum data required by Desktop Analytics.

To enable the behavior described above, complete the following steps:
1. Enable this policy setting
2. Set the "Allow Diagnostic Data" policy to "Send optional diagnostic data"
3. Enable the "Limit Dump Collection" policy
4. Enable the "Limit Diagnostic Log Collection" policy

When these policies are configured, Microsoft will collect only required diagnostic data and the events required by Desktop Analytics, which can be viewed at https://go.microsoft.com/fwlink/?linkid=2116020.

If you disable or do not configure this policy setting, diagnostic data collection is determined by the "Allow Diagnostic Data" policy setting or by the end user from the Settings app.

French text from Windows 11 26H2

Combiné au paramètre de stratégie « Autoriser les données de diagnostic », ce paramètre de stratégie permet aux organisations d’envoyer le minimum de données requis par l’analyse du bureau.

Pour activer le comportement décrit ci-dessus, vous devez effectuer les étapes suivantes :
-1. Activer ce paramètre de stratégie
-2. Définissez la stratégie « Autoriser les données de diagnostic » sur « Envoyer des données de diagnostic facultatives »
-3. Activez la stratégie « Limiter la collecte du journal de dumps »
-4. Activez la stratégie « Limiter la collecte de journaux de diagnostic »

Lorsque ces stratégies sont configurées, Microsoft collecte uniquement les données de diagnostic requises et les événements requis par l’analyse de bureau, qui peuvent être consultés sur https://go.microsoft.com/fwlink/?linkid=2116020

Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, la collecte des données de diagnostic est déterminée par le paramètre de stratégie « Autoriser les données de diagnostic » ou par l’utilisateur final à partir de l’application paramètres.

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\DataCollection
Value name
LimitEnhancedDiagnosticDataWindowsAnalytics
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: DataCollection/LimitEnhancedDiagnosticDataWindowsAnalytics
$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 'LimitEnhancedDiagnosticDataWindowsAnalytics' -Value 1 -Type DWord
#
# Possible options:
#   Enable Desktop Analytics collection = 1
#   Disable Desktop Analytics collection = 0
Set-ItemProperty -Path $k -Name 'LimitEnhancedDiagnosticDataWindowsAnalytics' -Value 1 -Type DWord

Disable

# Disable: DataCollection/LimitEnhancedDiagnosticDataWindowsAnalytics
$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 'LimitEnhancedDiagnosticDataWindowsAnalytics' -Value 0 -Type DWord

Revert to "Not configured"

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

Options (1)

LabelControlRegistry valueREG typeConstraints / details
LimitEnhancedDiagnosticDataWindowsAnalyticsDrop-down listenumLimitEnhancedDiagnosticDataWindowsAnalyticsREG_DWORD
Required · Default choice (UI): #0
LabelValue
Enable Desktop Analytics collectionREG_DWORD = 1
Disable Desktop Analytics collectionREG_DWORD = 0

Availability

Windows Server