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.
Tags:
© 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. See the Terms of Use and Privacy Policy for details.