Windows 7 – Remove or Add Run as administrator on an exe

Two years ago I played a little bit with UAC in my windows 7 and managed to set an application to always run as an administrator and prompt UAC.
There are a few tricks by changing it in the shortcut, but just by doing this on the exe of the application itself needed more exploration…

Today I wanted to remove it because I want to run it again under my personal credentials.  It took me some time to find out how I did that.

it’s in

HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers

then search for the program and remove it


And here is the procedure on how to add it back again  :

In the right pane of Layers, right click on a empty area and click on New, then on String Value.

Type in the full path of the program’s exe file and press Enter, then right click on the full path and click on Modify.

Type in a the value : RUNASADMIN

Be the first to comment

Leave a Reply

Your email address will not be published.