Turn off SwitchBack Compatibility Engine
Désactiver le moteur de compatibilité Switchback
Explanation
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.
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.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\AppCompat- Value name
SbEnable
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 0 |
| Disabled | REG_DWORD = 1 |
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/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 DWordDisable
# Disable: 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 DWordRevert to "Not configured"
# Revert to "Not configured": AppCompat/AppCompatTurnOffSwitchBack
$k = 'HKLM:\Software\Policies\Microsoft\Windows\AppCompat'
Remove-ItemProperty -Path $k -Name 'SbEnable' -ErrorAction SilentlyContinue