Ouvrir dans l'explorateur

Désactiver le moteur de compatibilité Switchback

Turn off SwitchBack Compatibility Engine

Type
Ordinateur
Chemin GPO
Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Compatibilité des applications EN : Computer Configuration › Policies › Administrative Templates › Windows Components › Application Compatibility
Pris en charge sur
Au minimum Windows Server 2008 R2 ou Windows 7 EN : At least Windows Server 2008 R2 or Windows 7
Fichier ADMX
AppCompat.admx
Nom interne
AppCompat/AppCompatTurnOffSwitchBack

Explication

Texte français issu de Windows 11 26H2

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

Switchback est un mécanisme qui assure la prévention de compatibilité générique à d’anciennes applications en proposant d’anciens comportements aux anciennes applications et les nouveaux comportements aux nouvelles applications.

Ce mécanisme est activé par défaut.

Si vous activez ce paramètre de stratégie, Switchback est désactivé. La désactivation de Switchback peut diminuer la compatibilité des anciennes applications. Cette option est utile pour les administrateurs de serveur ayant besoin de performances et connaissant la compatibilité des applications qu’ils utilisent.

Si vous désactivez ou ne configurez pas ce paramètre de stratégie, le mécanisme Switchback est activé.

Redémarrez le système après avoir modifié le paramètre afin de vous assurer que ces modifications ont été prises en compte.

The policy controls the state of the Switchback compatibility engine in the system.

Switchback is a mechanism that provides generic compatibility mitigations to older applications by providing older behavior to old applications and new behavior to new applications.

Switchback is on by default.

If you enable this policy setting, Switchback will be turned off. Turning Switchback off may degrade the compatibility of older applications. This option is useful for server administrators who require performance and are aware of compatibility of the applications they are using.

If you disable or do not configure this policy setting, the Switchback will be turned on.

Please reboot the system after changing the setting to ensure that your system accurately reflects those changes.

Registre

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\AppCompat
Nom de la valeur
SbEnable
ÉtatValeur écrite
ActivéREG_DWORD = 0
DésactivéREG_DWORD = 1

PowerShell

Commandes PowerShell qui écrivent dans le registre ce que la stratégie écrirait. Les valeurs entre chevrons (<…>) sont à remplacer.

Écrire directement dans le registre contourne la stratégie de groupe : si une GPO gère cette valeur, elle sera réécrite au prochain gpupdate ; sinon la valeur reste en place (effet « tatouage »). Préférez une GPO ou, en local, LGPO.exe. Exécutez PowerShell en administrateur pour HKLM. Certaines stratégies demandent un redémarrage ou gpupdate /force.

Activer

# Activer : AppCompat/AppCompatTurnOffSwitchBack
$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 'SbEnable' -Value 0 -Type DWord

Désactiver

# Désactiver : AppCompat/AppCompatTurnOffSwitchBack
$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 'SbEnable' -Value 1 -Type DWord

Revenir à « Non configuré »

# Revenir à « Non configuré » : AppCompat/AppCompatTurnOffSwitchBack
$k = 'HKLM:\Software\Policies\Microsoft\Windows\AppCompat'
Remove-ItemProperty -Path $k -Name 'SbEnable' -ErrorAction SilentlyContinue

Disponibilité