Désactiver le moteur de compatibilité Switchback
Turn off SwitchBack Compatibility Engine
Explication
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
| État | Valeur é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 DWordDé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 DWordRevenir à « Non configuré »
# Revenir à « Non configuré » : AppCompat/AppCompatTurnOffSwitchBack
$k = 'HKLM:\Software\Policies\Microsoft\Windows\AppCompat'
Remove-ItemProperty -Path $k -Name 'SbEnable' -ErrorAction SilentlyContinue