Configure Scenario Execution Level
Configurer le niveau d’exécution de scénario
Explanation
Determines the execution level for Windows System Responsiveness Diagnostics.
If you enable this policy setting, you must select an execution level from the dropdown menu. If you select problem detection and troubleshooting only, the Diagnostic Policy Service (DPS) will detect Windows System Responsiveness problems and attempt to determine their root causes. These root causes will be logged to the event log when detected, but no corrective action will be taken. If you select detection, troubleshooting and resolution, the DPS will detect Windows System Responsiveness problems and indicate to the user that assisted resolution is available.
If you disable this policy setting, Windows will not be able to detect, troubleshoot or resolve any Windows System Responsiveness problems that are handled by the DPS.
If you do not configure this policy setting, the DPS will enable Windows System Responsiveness for resolution by default.
This policy setting takes effect only if the diagnostics-wide scenario execution policy is not configured.
No system restart or service restart is required for this policy to take effect: changes take effect immediately.
This policy setting will only take effect when the Diagnostic Policy Service is in the running state. When the service is stopped or disabled, diagnostic scenarios will not be executed. The DPS can be configured with the Services snap-in to the Microsoft Management Console.
Détermine le niveau d’exécution des Diagnostics des performances de réactivité du système Windows.
Si vous activez ce paramètre de stratégie, vous devez sélectionner un niveau d’exécution dans le menu déroulant. Si vous sélectionnez la détection des problèmes et le dépannage uniquement, le service de stratégie de diagnostic détecte les problèmes de réactivité du système Windows et tente d’en déterminer les causes principales. Ces causes sont enregistrées dans le journal des événements lorsqu’elles sont détectées, mais aucune action corrective n’est prise. Si vous sélectionnez la détection, le dépannage et la résolution, le service de stratégie de diagnostic détecte les problèmes de réactivité du système Windows et indique à l’utilisateur que la résolution assistée est disponible.
Si vous désactivez ce paramètre de stratégie, Windows ne peut pas détecter, dépanner ou résoudre les problèmes de réactivité du système Windows qui sont gérés par le service de stratégie de diagnostic.
Si vous ne configurez pas ce paramètre de stratégie, le service de stratégie de diagnostic active par défaut la résolution de la réactivité du système Windows.
Ce paramètre de stratégie ne prend effet que si la stratégie d’exécution des scénarios de diagnostic n’est pas configurée.
La validation de cette stratégie n’impose pas le redémarrage du système ou du service : les modifications sont immédiates.
Ce paramètre de stratégie ne prend effet que lorsque le service de stratégie de diagnostic est en cours d’exécution. Lorsque le service est arrêté ou désactivé, les scénarios de diagnostic ne sont pas exécutés. Vous pouvez configurer le service de stratégie de diagnostic à l’aide du composant logiciel enfichable Services installé sur Microsoft Management Console.
Registry
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WDI\{a7a5847a-7511-4e4e-90b1-45ad2a002f51}- 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: PerformanceDiagnostics/WdiScenarioExecutionPolicy_2
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WDI\{a7a5847a-7511-4e4e-90b1-45ad2a002f51}'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'ScenarioExecutionEnabled' -Value 1 -Type DWord
# Scenario Execution Level
# Possible options:
# Detection and Troubleshooting Only = 1
# Detection, Troubleshooting and Resolution = 2
Set-ItemProperty -Path $k -Name 'EnabledScenarioExecutionLevel' -Value 2 -Type DWord
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WDI\{186f47ef-626c-4670-800a-4a30756babad}'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'ScenarioExecutionEnabled' -Value 1 -Type DWord
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WDI\{ecfb03d1-58ee-4cc7-a1b5-9bc6febcb915}'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'ScenarioExecutionEnabled' -Value 1 -Type DWordDisable
# Disable: PerformanceDiagnostics/WdiScenarioExecutionPolicy_2
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WDI\{a7a5847a-7511-4e4e-90b1-45ad2a002f51}'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'ScenarioExecutionEnabled' -Value 0 -Type DWord
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WDI\{186f47ef-626c-4670-800a-4a30756babad}'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'ScenarioExecutionEnabled' -Value 0 -Type DWord
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WDI\{ecfb03d1-58ee-4cc7-a1b5-9bc6febcb915}'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'ScenarioExecutionEnabled' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": PerformanceDiagnostics/WdiScenarioExecutionPolicy_2
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WDI\{a7a5847a-7511-4e4e-90b1-45ad2a002f51}'
Remove-ItemProperty -Path $k -Name 'ScenarioExecutionEnabled' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'EnabledScenarioExecutionLevel' -ErrorAction SilentlyContinue
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WDI\{186f47ef-626c-4670-800a-4a30756babad}'
Remove-ItemProperty -Path $k -Name 'ScenarioExecutionEnabled' -ErrorAction SilentlyContinue
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WDI\{ecfb03d1-58ee-4cc7-a1b5-9bc6febcb915}'
Remove-ItemProperty -Path $k -Name 'ScenarioExecutionEnabled' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Scenario Execution LevelNiveau d’exécution de scénarioWdiScenarioExecutionPolicyLevel | Drop-down listenum | EnabledScenarioExecutionLevel | REG_DWORD | Required · Default choice (UI): #1
|