Limit optional diagnostic data for Desktop Analytics
Limiter les données de diagnostic facultatives pour Analyses du bureau
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.
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
| 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/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 DWordDisable
# 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 DWordRevert to "Not configured"
# Revert to "Not configured": DataCollection/LimitEnhancedDiagnosticDataWindowsAnalytics
$k = 'HKLM:\Software\Policies\Microsoft\Windows\DataCollection'
Remove-ItemProperty -Path $k -Name 'LimitEnhancedDiagnosticDataWindowsAnalytics' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| LimitEnhancedDiagnosticDataWindowsAnalytics | Drop-down listenum | LimitEnhancedDiagnosticDataWindowsAnalytics | REG_DWORD | Required · Default choice (UI): #0
|