Détecter les défaillances d’application causées par des DLL Windows déconseillées : valeur de Registre ScenarioExecutionEnabled et 1 autresOrdinateurHKLM\SOFTWARE\Policies\Microsoft\Windows\WDI\{659F08FB-2FAB-42a7-BD4F-566CFA528769}

ID de stratégie
DetectDeprecatedComponentFailuresPolicy
Étendue
Configuration ordinateur
Pris en charge sur
Au minimum Windows Vista
Source
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
Catégorie
Système › Dépannage et diagnostics › Diagnostics de compatibilité des applications

Registre

ScenarioExecutionEnabled

REG_DWORDOrdinateur
Valeur si activée
1
Valeur si désactivée
0
Appliquer avec .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WDI\{659F08FB-2FAB-42a7-BD4F-566CFA528769}]

; Options (en utiliser une seule)
; Activé
"ScenarioExecutionEnabled"=dword:00000001
; Désactivé
"ScenarioExecutionEnabled"=dword:00000000
CMD
:: Options (en utiliser une seule)

:: Activé
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WDI\{659F08FB-2FAB-42a7-BD4F-566CFA528769}" /v "ScenarioExecutionEnabled" /t REG_DWORD /d 1 /f
:: Désactivé
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WDI\{659F08FB-2FAB-42a7-BD4F-566CFA528769}" /v "ScenarioExecutionEnabled" /t REG_DWORD /d 0 /f
PowerShell
# Commun : créer la clé
New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WDI\{659F08FB-2FAB-42a7-BD4F-566CFA528769}' -Force | Out-Null

# Options (en utiliser une seule)
# Activé
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WDI\{659F08FB-2FAB-42a7-BD4F-566CFA528769}' -Name 'ScenarioExecutionEnabled' -PropertyType DWord -Value 1 -Force | Out-Null
# Désactivé
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WDI\{659F08FB-2FAB-42a7-BD4F-566CFA528769}' -Name 'ScenarioExecutionEnabled' -PropertyType DWord -Value 0 -Force | Out-Null

EnabledScenarioExecutionLevel

REG_DWORDOrdinateur
Valeur si activée
Dépend de la valeur de l'option
Élément
Niveau d’exécution des scénarios
Options
EntréeValeur stockée
Détection et dépannage seulement1
Détection, dépannage et résolution2
Appliquer avec .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WDI\{659F08FB-2FAB-42a7-BD4F-566CFA528769}]

; Options (en utiliser une seule)
; Détection et dépannage seulement
"EnabledScenarioExecutionLevel"=dword:00000001
; Détection, dépannage et résolution
"EnabledScenarioExecutionLevel"=dword:00000002
CMD
:: Options (en utiliser une seule)

:: Détection et dépannage seulement
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WDI\{659F08FB-2FAB-42a7-BD4F-566CFA528769}" /v "EnabledScenarioExecutionLevel" /t REG_DWORD /d 1 /f
:: Détection, dépannage et résolution
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WDI\{659F08FB-2FAB-42a7-BD4F-566CFA528769}" /v "EnabledScenarioExecutionLevel" /t REG_DWORD /d 2 /f
PowerShell
# Commun : créer la clé
New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WDI\{659F08FB-2FAB-42a7-BD4F-566CFA528769}' -Force | Out-Null

# Options (en utiliser une seule)
# Détection et dépannage seulement
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WDI\{659F08FB-2FAB-42a7-BD4F-566CFA528769}' -Name 'EnabledScenarioExecutionLevel' -PropertyType DWord -Value 1 -Force | Out-Null
# Détection, dépannage et résolution
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WDI\{659F08FB-2FAB-42a7-BD4F-566CFA528769}' -Name 'EnabledScenarioExecutionLevel' -PropertyType DWord -Value 2 -Force | Out-Null