Open in the explorer

Turn off Program Compatibility Assistant

Désactiver l’Assistant Compatibilité des programmes

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 Vista FR: Au minimum Windows Vista
ADMX file
AppCompat.admx
Internal name
AppCompat/AppCompatTurnOffProgramCompatibilityAssistant_2

Explanation

This policy setting controls the state of the Program Compatibility Assistant (PCA).

The PCA monitors applications run by the user. When a potential compatibility issue with an application is detected, the PCA will prompt the user with recommended solutions. To configure the diagnostic settings for the PCA, go to System->Troubleshooting and Diagnostics->Application Compatibility Diagnostics.

If you enable this policy setting, the PCA will be turned off. The user will not be presented with solutions to known compatibility issues when running applications. Turning off the PCA can be useful for system administrators who require better performance and are already aware of application compatibility issues.

If you disable or do not configure this policy setting, the PCA will be turned on. To configure the diagnostic settings for the PCA, go to System->Troubleshooting and Diagnostics->Application Compatibility Diagnostics.

Note: The Diagnostic Policy Service (DPS) and Program Compatibility Assistant Service must be running for the PCA to run. These services can be configured by using the Services snap-in to the Microsoft Management Console.

French text from Windows 11 26H2

Ce paramètre de stratégie contrôle l’état de l’Assistant Compatibilité des programmes (PCA).

L’Assistant Compatibilité des programmes analyse les applications exécutées par l’utilisateur. Si un problème potentiel de compatibilité avec une application est détecté, l’Assistant Compatibilité des programmes suggère à l’utilisateur des solutions recommandées. Pour configurer les paramètres de diagnostic de l’Assistant Compatibilité des programmes, accédez à Système->Dépannage et diagnostics->Diagnostics de compatibilité des applications.

Si ce paramètre de stratégie est activé, l’Assistant Compatibilité des programmes est désactivé. Aucune solution aux problèmes de compatibilité connus lors de l’exécution d’applications n’est proposée à l’utilisateur. Les administrateurs conscients des problèmes de compatibilité des applications et qui souhaitent améliorer les performances peuvent désactiver l’Assistant Compatibilité des programmes.

Si vous désactivez ce paramètre de stratégie ou ne le configurez pas, l’Assistant Compatibilité des programmes est activé. Pour configurer les paramètres de diagnostic de l’Assistant Compatibilité des programmes, accédez à Système->Dépannage et diagnostics->Diagnostics de compatibilité des applications.

Remarque : le service de stratégie de diagnostic (DPS) et le service de l’Assistant Compatibilité des programmes doivent être en cours d’exécution pour qu’il soit possible d’exécuter l’Assistant Compatibilité des programmes. Ces services sont configurables à l’aide du composant logiciel enfichable Services de la console Microsoft Management Console.

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\AppCompat
Value name
DisablePCA
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: AppCompat/AppCompatTurnOffProgramCompatibilityAssistant_2
$k = 'HKLM:\Software\Policies\Microsoft\Windows\AppCompat'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DisablePCA' -Value 1 -Type DWord

Disable

# Disable: AppCompat/AppCompatTurnOffProgramCompatibilityAssistant_2
$k = 'HKLM:\Software\Policies\Microsoft\Windows\AppCompat'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DisablePCA' -Value 0 -Type DWord

Revert to "Not configured"

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

Availability