Open in the explorer

Configure Scenario Execution Level

Configurer le niveau d’exécution de scénario

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › System › Troubleshooting and Diagnostics › Windows Standby/Resume Performance Diagnostics FR: Configuration ordinateur › Stratégies › Modèles d'administration › Système › Dépannage et diagnostics › Diagnostics des performances de la veille/reprise Windows
Supported on
At least Windows Vista FR: Au minimum Windows Vista
ADMX file
PerformanceDiagnostics.admx
Internal name
PerformanceDiagnostics/WdiScenarioExecutionPolicy_4

Explanation

Determines the execution level for Windows Standby/Resume Performance 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 Standby/Resume Performance 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 Standby/Resume Performance 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 Standby/Resume Performance problems that are handled by the DPS.

If you do not configure this policy setting, the DPS will enable Windows Standby/Resume Performance 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.

French text from Windows 11 26H2

Détermine le niveau d’exécution des Diagnostics des performances de la veille/reprise 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 performances de la veille/reprise 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 performances de la veille/reprise 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 performances de la veille/reprise 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 des performances de la veille/reprise 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\{ffc42108-4920-4acf-a4fc-8abdcc68ada4}
Value name
ScenarioExecutionEnabled
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: PerformanceDiagnostics/WdiScenarioExecutionPolicy_4
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WDI\{ffc42108-4920-4acf-a4fc-8abdcc68ada4}'
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

Disable

# Disable: PerformanceDiagnostics/WdiScenarioExecutionPolicy_4
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WDI\{ffc42108-4920-4acf-a4fc-8abdcc68ada4}'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'ScenarioExecutionEnabled' -Value 0 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": PerformanceDiagnostics/WdiScenarioExecutionPolicy_4
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WDI\{ffc42108-4920-4acf-a4fc-8abdcc68ada4}'
Remove-ItemProperty -Path $k -Name 'ScenarioExecutionEnabled' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'EnabledScenarioExecutionLevel' -ErrorAction SilentlyContinue

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Scenario Execution LevelNiveau d’exécution de scénarioWdiScenarioExecutionPolicyLevelDrop-down listenumEnabledScenarioExecutionLevelREG_DWORD
Required · Default choice (UI): #1
LabelValue
Detection and Troubleshooting OnlyREG_DWORD = 1
Detection, Troubleshooting and ResolutionREG_DWORD = 2

Availability