Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 381
  • Last Modified:

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

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?
0
RainMakker
Asked:
RainMakker
1 Solution
 
McKnifeCommented:
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: http://blogs.technet.com/b/askperf/archive/2010/08/27/act-suppressing-elevation-prompts-for-legacy-applications.aspx
If they aren't, you would not use runasinvoker  but runashighest.
0
 
bbaoIT ConsultantCommented:
basically you just need a registry setting to disable UAC at all?
0
 
KimputerCommented:
In every application shortcut, there's already this option. Or did you mean it should suppress the admin login screen?
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
becraigCommented:
You can do this from the program itself here is how-to:

http://technet.microsoft.com/en-us/magazine/ff431742.aspx
0
 
McKnifeCommented:
Hm. He wrote something of doing it programmatically for end users, didn't he? That's why I showed how to deploy it.
0
 
becraigCommented:
Ahhh

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.
0
 
becraigCommented:
HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers\

Add the path the your program as the new entry:
New String Value:
c:\path-to-your-program\program.exe
Then modify and edit value data:
Add the value:  "RUNASADMIN"

That works for me.
0
 
McKnifeCommented:
That's what the shim would do, by the way.
0

Featured Post

Independent Software Vendors: 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!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now