Disable Application Compatibility Engine
- Windows onlyThis script improves your privacy on Windows
- Single actionThis page belongs to a script, containing basic changes to achieve a task.
- Impact: Minimum
System Functionality / Data Loss Risk: Low
This action improves privacy with minimal impact when you run the recommended script.
- Batch (batchfile)These changes use Windows system commands to update your settings.
- Administrator rights requiredThis script requires privilege access to do the system changes
- Fully reversible
You can fully restore this action (revert back to the original behavior) using this website.
The restore/revert methods provided here can help you fix issues.
Overview
This script disables the Application Compatibility Engine on Windows systems.
The Application Compatibility Engine examines a compatibility database every time an application starts 1. If it finds a match for the application, it either applies compatibility fixes or displays a help message for known problems with the application 1. This process may inadvertently reveal data about the applications you run on your system, especially if the query functions are intercepted 2. Moreover, this database can be utilized by malware creators to modify an application and make it perform unintended actions 3.
Disabling the Application Compatibility Engine leads to enhanced system performance 1. However, this might compromise the compatibility of many older, popular applications and permit the installation of known incompatible applications 1. Additionally, certain Windows features like Windows Resource Protection and User Account Control use this engine to resolve application issues 1. Without the engine, these solutions won't be applied, and applications may not install or run correctly 1.
This option is suitable for users seeking faster performance who are knowledgeable about the compatibility of the applications they use 1. Keep in mind that any changes to this setting require a system reboot to take effect as many system processes cache this setting's value for performance reasons 1.
The script achieves its goal by altering a specific registry key: HKLM\Software\Policies\Microsoft\Windows\AppCompat!DisableEngine
1.
By disabling this engine, known to be a vulnerability exploited by malware 4, the script reduces the potential attack surface on the system,
enhancing overall security.
Sources
- ADMX_AppCompat Policy CSP - Windows Client Management. Microsoft Learn. (2023).
Original: https://learn.microsoft.com/en-us/windows/client-management/mdm/policy-csp-admx-appcompat
Archived: https://web.archive.org/web/20230924112733/https://learn.microsoft.com/en-us/windows/client-management/mdm/policy-csp-admx-appcompat#appcompatturnoffengine - Malicious Application Compatibility Shims. blackhat.com. (2023).
Original: https://www.blackhat.com/docs/eu-15/materials/eu-15-Pierce-Defending-Against-Malicious-Application-Compatibility-Shims-wp.pdf
Archived: https://web.archive.org/web/20230927174559/https://www.blackhat.com/docs/eu-15/materials/eu-15-Pierce-Defending-Against-Malicious-Application-Compatibility-Shims-wp.pdf - Windows Shim Database (SDB) Parser. tzworks.com. (2023).
Original: https://tzworks.com/prototype_page.php
Archived: https://web.archive.org/web/20230927174609/https://tzworks.com/prototype_page.php?proto_id=33 - 'The active use and exploitation of Microsoft's Application Compatibility Framework' by Jon Erickson. (2023).
Original: https://docplayer.net/15700963-The-active-use-and-exploitation-of-microsoft-s-application-compatibility-framework-jon-erickson.html
Archived: https://web.archive.org/web/20230927174707/https://docplayer.net/15700963-The-active-use-and-exploitation-of-microsoft-s-application-compatibility-framework-jon-erickson.html
Apply Now
Choose one of three ways to apply:
Download script
Download and run the script directly- No app needed
- Offline usage
- Easy-to-apply
- Free
- Open-source
Help
How to apply or restore "Disable Application Compatibility Engine" using script
- ≈ 2 min to complete
- Tools: Web Browser
- Difficulty: Simple
- ≈ 5 instructions
- 1
Download
Download the script file by clicking on thebutton above.
Use button above to restore changes. - 2
Keep the file
If warned by your browser, keep the file. - 3
Open
Open the downloaded file. - 4
Exit
Once it's done, press any key to exit the window. - 5
Restart
Restart your computer for all changes to take effect.
Apply with privacy.sexy
Guided, automated application with safety checks- Recommended for most users
- Includes safety checks
- Free
- Open-source
- Popular
- Offline/Online usage
Help
How to apply or restore "Disable Application Compatibility Engine" using privacy.sexy
- ≈ 3 min to complete
- Tools: privacy.sexy
- Difficulty: Simple
- ≈ 4 instructions
- 2
Choose script
- Search for the script name: Disable Application Compatibility Engine
- Check the script by clicking on the checkbox.
- 3
Run
Click on ▶️ Run button at the bottom of the page.This button only appears on desktop version (recommended). On browser, use 💾 Save button.
- Apply
- Revert
:: Set the registry value: "HKLM\Software\Policies\Microsoft\Windows\AppCompat!DisableEngine"
PowerShell -ExecutionPolicy Unrestricted -Command "$registryPath = 'HKLM\Software\Policies\Microsoft\Windows\AppCompat'; $data = '1'; reg add 'HKLM\Software\Policies\Microsoft\Windows\AppCompat' /v 'DisableEngine' /t 'REG_DWORD' /d "^""$data"^"" /f"
Ijo6IERlbGV0ZSB0aGUgcmVnaXN0cnkgdmFsdWUgXCJIS0xNXFxTb2Z0d2FyZVxcUG9saWNpZXNcXE1pY3Jvc29mdFxcV2luZG93c1xcQXBwQ29tcGF0IURpc2FibGVFbmdpbmVcIlxuUG93ZXJTaGVsbCAtRXhlY3V0aW9uUG9saWN5IFVucmVzdHJpY3RlZCAtQ29tbWFuZCBcInJlZyBkZWxldGUgJ0hLTE1cXFNvZnR3YXJlXFxQb2xpY2llc1xcTWljcm9zb2Z0XFxXaW5kb3dzXFxBcHBDb21wYXQnIC92ICdEaXNhYmxlRW5naW5lJyAvZiAyPiRudWxsXCIi
Help
How to apply or restore "Disable Application Compatibility Engine" using commands
- ≈ 2 min to complete
- Tools: Command Prompt
- Difficulty: Medium
- ≈ 3 instructions
- 1
Open Command Prompt
Open Command Prompt as Administrator. - 2
Copy code
Copy the code: - 3
Paste & run
Paste the commands into Command Prompt and press Enter to run.Some changes require a system restart to take effect
Similar Guides
Wider Goal
Guides below includes this guide to achieve a wider goal.See other more general settings that includes this one as one of its actions.
These plans combine multiple privacy settings, including this one, for stronger protection.
- Disable Application Compatibility Framework
- Disable OS data collection
This category disables the Application Compatibility (AppCompat) framework on Windows. The Application Compatibility (AppCompat) framework is a feature in Windows ...
Disable OS data collection — to reduce data exposure leveraging important data privacy safeguard on Windows. What follows is, this guidance provides instructions t...
Same Goal
Other guides in Disable Application Compatibility FrameworkSee settings that are in the same category as this guide.
Using other actions in the same category may help you achieve your goal better.
About the Creators
These people have authored this documentation and written its scripts:
Reviewed By
This guide has undergone comprehensive auditing and peer review:Expert review by undergroundwires
- Verified technical accuracy and editorial standards
- Assessed system impact and user privacy risks
Public review by large community
- Privacy enthusiasts and professionals peer-reviewed
- Millions of end-users tested across different environments
History
We continually monitor our guides, their impact and all other privacy options. We update our guides when new information becomes available. On every update, we publicly store who made the change, what has been changed, why the change was made and when the change was made.