Please consider donating: https://www.corelan.be/index.php/donate/


56,841 views

Fixing ‘Compatibility Mode grayed out’ or ‘Unable to enable Run as administrator’ on Vista / Windows 2008 Server

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 – 2021, Peter Van Eeckhoutte (corelanc0d3r). All rights reserved.

Comments are closed.

Corelan Training

We have been teaching our win32 exploit dev classes at various security cons and private companies & organizations since 2011

Check out our schedules page here and sign up for one of our classes now!

Donate

Want to support the Corelan Team community ? Click here to go to our donations page.

Want to donate BTC to Corelan Team?



Your donation will help funding server hosting.

Corelan Team Merchandise

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

Protected by Copyscape Web Plagiarism Tool

Corelan on Slack

You can chat with us and our friends on our Slack workspace:

  • Go to our facebook page
  • Browse through the posts and find the invite to Slack
  • Use the invite to access our Slack workspace
  • Categories