Ever wondered how you can set Compatibility Mode on executables under Vista / Windows 2008 server when the settings (or even the entire tab) has been disabled ? Or make the application “run as administrator” permanently, and you’ve found that this setting is disabled ? All of the settings in the Compatibility tab can be set via the registry Launch regedit and navigate to HKEY_CURRENT_USERSoftwareMicrosoftWindows NTCurrentVersionAppCompatFlagsLayers Create a new string (REG_SZ) value. Rename the value (not the data) to the full path/filename of the application that needs to be modified. Suppose you want to modify settings for notepad, then rename the string to “C:Windowsnotepad.exe” There are multiple settings that can be defined : Compatibility values (cannot be combined – pick only one) :
Settings that can be combined with each other and with the compatibility mode :
It is important to specify the options in the correct order ( = the sequence in which the options are displayed in the compatibility tab) So first, specify the compatibility mode, then the settings, and finally “RUNASADMIN” if required Suppose you want to run notepad in 256 Color mode, as admin, and in Windows XP SP2 Compatibility mode, set the value of the newly created string to “WINXPSP2 256COLOR RUNASADMIN ” Now run notepad.exe and verify that the color scheme is changed If you want to undo the changes, simply remove the registry value. No reboots are required.
© Corelan Consulting BV. All rights reserved. The contents of this page may not be reproduced, redistributed, or republished, in whole or in part, for commercial or non-commercial purposes without prior written permission from Corelan Consulting bv. See our Terms of Use & Privacy Policy (https://www.corelan.be/index.php/legal) for more details.
Subscribe to get the latest posts sent to your email.
Type your email…
Subscribe
Peter Van Eeckhoutte is the founder of Corelan and a globally recognized expert in exploit development and vulnerability research. With over two decades in IT security, he built Corelan into a respected platform for deep technical research, hands-on training, and knowledge sharing. Known for his influential exploit development tutorials, tools, and real-world training, Peter combines a strong research mindset with a passion for education—helping security professionals understand not just how exploits work, but why.
Tags: