Enable/Disable PerfTrack
Activer/Désactiver PerfTrack
Explanation
This policy setting specifies whether to enable or disable tracking of responsiveness events.
If you enable this policy setting, responsiveness events are processed and aggregated. The aggregated data will be transmitted to Microsoft through SQM.
if you disable this policy setting, responsiveness events are not processed.
If you do not configure this policy setting, the DPS will enable Windows Performance PerfTrack by default.
Ce paramètre de stratégie spécifie si le suivi des événements de réactivité doit être activé ou désactivé.
Si vous activez ce paramètre, les événements de réactivité sont traités et agrégés. Les données agrégées sont transmises à Microsoft par le biais de SQM.
Si vous désactivez ce paramètre, les événements de réactivité ne sont pas traitées.
Si vous ne configurez pas ce paramètre de stratégie, le service de stratégie de diagnostic active Windows Performance PerfTrack par défaut.
Registry
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WDI\{9c5a40da-b965-4fc3-8781-88dd50a6299d}- Value name
ScenarioExecutionEnabled
| 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: performanceperftrack/WdiScenarioExecutionPolicy
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WDI\{9c5a40da-b965-4fc3-8781-88dd50a6299d}'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'ScenarioExecutionEnabled' -Value 1 -Type DWord
Set-ItemProperty -Path $k -Name 'ScenarioExecutionEnabled' -Value 1 -Type DWordDisable
# Disable: performanceperftrack/WdiScenarioExecutionPolicy
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WDI\{9c5a40da-b965-4fc3-8781-88dd50a6299d}'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'ScenarioExecutionEnabled' -Value 0 -Type DWord
Set-ItemProperty -Path $k -Name 'ScenarioExecutionEnabled' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": performanceperftrack/WdiScenarioExecutionPolicy
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WDI\{9c5a40da-b965-4fc3-8781-88dd50a6299d}'
Remove-ItemProperty -Path $k -Name 'ScenarioExecutionEnabled' -ErrorAction SilentlyContinue