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 ?

image

Or make the application “run as administrator” permanently, and you’ve found that this setting is disabled ?

image

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) :

  • WIN95
  • WIN98
  • NT4SP5
  • WIN2000
  • WINXPSP2
  • WINSRV03SP1

Settings that can be combined with each other and with the compatibility mode :

  • 256COLOR
  • 640X480
  • DISABLETHEMES
  • DISABLEWDM
  • HIGHDPIAWARE
  • ELEVATECREATEPROCESS
  • RUNASADMIN

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 ”

image

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.

© 2009, Peter Van Eeckhoutte. All rights reserved. Terms of use are applicable to this document.



Related Posts:

Leave a comment

You must be logged in to post a comment.


Meet me at Brucon 2010
Meet me at Brucon 2010 !

Corelan Team Merchandise
You can support Corelan Team by donating or purchasing items from the official Corelan Team merchandising store.

Peter says:
« All of the info and all tools on this blog are free. Keeping this blog in the air is quite expensive.
So if you like what I do and want to show your respect for my work, please consider donating (use the Donate link above)

There is no way I can keep this site up and running without your help.


»     ...     « If you have enjoyed a certain post or like one of my tools, don't forget to vote/rate it !

»     ...     « If you have questions about certain posts, content or tools published on this website, then please use the forums to post questions. Don't write your questions in the Comments section.

»     ...     « If you want to be the first to know about new posts/tools/tutorials on this blog, then subscribe to the mailinglist. Use the 'Subscribe to updates via email' link below (in the Stay posted section)

»
Categories