Open in the explorer

Turn off Application Compatibility Engine

Désactiver le moteur de compatibilité des applications

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Windows Components › Application Compatibility FR: Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Compatibilité des applications
Supported on
At least Windows Server 2003 FR: Au minimum Windows Server 2003
ADMX file
AppCompat.admx
Internal name
AppCompat/AppCompatTurnOffEngine

Explanation

This policy controls the state of the application compatibility engine in the system.

The engine is part of the loader and looks through a compatibility database every time an application is started on the system. If a match for the application is found it provides either run-time solutions or compatibility fixes, or displays an Application Help message if the application has a know problem.

Turning off the application compatibility engine will boost system performance. However, this will degrade the compatibility of many popular legacy applications, and will not block known incompatible applications from installing. (For Instance: This may result in a blue screen if an old anti-virus application is installed.)

The Windows Resource Protection and User Account Control features of Windows use the application compatibility engine to provide mitigations for application problems. If the engine is turned off, these mitigations will not be applied to applications and their installers and these applications may fail to install or run properly.

This option is useful to server administrators who require faster performance and are aware of the compatibility of the applications they are using. It is particularly useful for a web server where applications may be launched several hundred times a second, and the performance of the loader is essential.

NOTE: Many system processes cache the value of this setting for performance reasons. If you make changes to this setting, please reboot to ensure that your system accurately reflects those changes.

French text from Windows 11 26H2

Cette stratégie contrôle l’état du moteur de compatibilité des applications dans le système.

Le moteur fait partie du chargeur et analyse une base de données de compatibilité chaque fois qu’une application démarre dans le système. Si une correspondance est trouvée pour l’application, il fournit des solutions à l’exécution ou des correctifs de compatibilité, ou affiche un message de l’aide de l’application si celle-ci présente un problème connu.

En désactivant le moteur de compatibilité des applications, vous améliorez les performances du système. Toutefois, la compatibilité de nombreuses applications héritées répandues sera compromise et les applications incompatibles connues seront installées. (Il peut en résulter, par exemple, un écran bleu si une ancienne application antivirus est installée.)

Les fonctionnalités Protection des ressources Windows et Contrôle de compte d’utilisateur utilisent le moteur de compatibilité des applications pour atténuer les problèmes liés aux applications. Si le moteur est désactivé, ces actions préventives ne sont pas appliquées aux applications et aux programmes d’installation correspondants et il se peut que ces applications ne soient pas installées ou ne s’exécutent pas correctement.

Cette option est utile pour les administrateurs de serveur qui doivent améliorer les performances et qui connaissent la compatibilité des applications qu’ils utilisent. Elle est également particulièrement utile sur les serveurs Web sur lesquels des applications peuvent être lancées plusieurs centaines de fois par seconde, auquel cas les performances du chargeur sont essentielles.

REMARQUE : nombre de processus système mettent en cache la valeur de ce paramètre pour des raisons de performances. Si vous modifiez ce paramètre, redémarrez le système pour vous assurer que ces modifications ont été prises en compte.

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\AppCompat
Value name
DisableEngine
StateValue written
Enablednot defined in the ADMX
Disablednot defined in the ADMX

PowerShell

PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.

The ADMX does not specify the value written when enabled; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled). The commands below use 1/0 as an assumption.

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: AppCompat/AppCompatTurnOffEngine
$k = 'HKLM:\Software\Policies\Microsoft\Windows\AppCompat'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# The ADMX does not specify the value written; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled)
Set-ItemProperty -Path $k -Name 'DisableEngine' -Value 1 -Type DWord  # assumed value (not defined in the ADMX)

Disable

# Disable: AppCompat/AppCompatTurnOffEngine
$k = 'HKLM:\Software\Policies\Microsoft\Windows\AppCompat'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# The ADMX does not specify the value written; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled)
Set-ItemProperty -Path $k -Name 'DisableEngine' -Value 0 -Type DWord  # assumed value (not defined in the ADMX)

Revert to "Not configured"

# Revert to "Not configured": AppCompat/AppCompatTurnOffEngine
$k = 'HKLM:\Software\Policies\Microsoft\Windows\AppCompat'
Remove-ItemProperty -Path $k -Name 'DisableEngine' -ErrorAction SilentlyContinue

Availability