cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
msmith12
Level 2

Shortcut with Admin privaleges

How do I make the application shortcut run with Admin Priveliges.

Thanks,
0 Kudos
1 Reply
JohnTech
Level 5 Flexeran
Level 5 Flexeran

Depending on if you want the setting to be per-user or per machine you can add a "string value" registry entry to one of the locations below:


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

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers

The name of the value needs to be the full path to your executable (if the path contains spaces, do not surround the path with quotes) and the data of the value must contain the string RUNASADMIN.

For example your registry entry would look similar to the below:

Name:
[INSTALLDIR]TestApp.exe

Data:
RUNASADMIN
0 Kudos