Detect applications unable to launch installers under UAC
Détecter les applications incapables de lancer les programmes d’installation régis par le contrôle de compte d’utilisateur
Explanation
This setting exists only for backward compatibility, and is not valid for this version of Windows. To configure the Program Compatibility Assistant, use the 'Turn off Program Compatibility Assistant' setting under Computer Configuration\Administrative Templates\Windows Components\Application Compatibility.
Ce paramètre existe uniquement à des fins de compatibilité descendante et il n’est pas valide pour cette version de Windows. Pour configurer l’Assistant Compatibilité des programmes, utilisez le paramètre « Désactiver l’Assistant Compatibilité des programmes » sous Configuration ordinateur\Modèles d’administration\Composants Windows\Compatibilité des applications.
Registry
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WDI\{081D3213-48AA-4533-9284-D98F01BDC8E6}- 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: pca/DetectUpdateFailuresPolicy
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WDI\{081D3213-48AA-4533-9284-D98F01BDC8E6}'
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 DWordDisable
# Disable: pca/DetectUpdateFailuresPolicy
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WDI\{081D3213-48AA-4533-9284-D98F01BDC8E6}'
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": pca/DetectUpdateFailuresPolicy
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WDI\{081D3213-48AA-4533-9284-D98F01BDC8E6}'
Remove-ItemProperty -Path $k -Name 'ScenarioExecutionEnabled' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'EnabledScenarioExecutionLevel' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Scenario Execution LevelNiveau d’exécution des scénariosDetectUpdateFailuresLevel | Drop-down listenum | EnabledScenarioExecutionLevel | REG_DWORD | Required · Default choice (UI): #1
|