Is there a registry setting I can create to tell Windows to always run my app as admin?

Posted on 2014-04-26
Last Modified: 2014-04-27
I know that I can simply right click on a link and tell Windows to always run my app as administrator, but is there a registry setting that I can programmatically set that will do this for end users?
Question by:RainMakker
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 54

Expert Comment

ID: 40024707
Sure, there is. It's called a compatibility shim and it can be deployed using scripts. So your users are Admins? Then this is the procedure:
If they aren't, you would not use runasinvoker  but runashighest.
LVL 37

Expert Comment

ID: 40024709
basically you just need a registry setting to disable UAC at all?
LVL 35

Expert Comment

ID: 40024710
In every application shortcut, there's already this option. Or did you mean it should suppress the admin login screen?
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

LVL 29

Expert Comment

ID: 40024754
You can do this from the program itself here is how-to:
LVL 54

Expert Comment

ID: 40024766
Hm. He wrote something of doing it programmatically for end users, didn't he? That's why I showed how to deploy it.
LVL 29

Expert Comment

ID: 40024782

I missed that part, well there is a registry hack he can simply update and push out to the computers:

Let me test first though.
LVL 29

Accepted Solution

becraig earned 500 total points
ID: 40025207
HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers\

Add the path the your program as the new entry:
New String Value:
Then modify and edit value data:
Add the value:  "RUNASADMIN"

That works for me.
LVL 54

Expert Comment

ID: 40025492
That's what the shim would do, by the way.

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Cryptolocker decryption tools? 5 90
MIgrating Office Settings 2010>365 4 48
Dell Latitude E7240 freezes when coming out of sleep 6 520
Surface Pro PXE boot does not work 7 599
Log files are useful in diagnosing and repairing problems.  This is a list of common log files and their standard locations that I've compiled.   While this is not exhaustive, it is a pretty good list that I've found to be useful.  I may update it f…
When you upgrade from Windows 8 to 8.1 or to Windows 10 or if you are like me you are on the Insider Program you may find yourself with many 450MB recovery partitions.  With a traditional disk that may not be a problem but with relatively smaller SS…
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question