Solved

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

Posted on 2014-04-26
8
361 Views
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?
0
Comment
Question by:RainMakker
8 Comments
 
LVL 53

Expert Comment

by:McKnife
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: 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
 
LVL 37

Expert Comment

by:Bing CISM / CISSP
ID: 40024709
basically you just need a registry setting to disable UAC at all?
0
 
LVL 35

Expert Comment

by:Kimputer
ID: 40024710
In every application shortcut, there's already this option. Or did you mean it should suppress the admin login screen?
0
 
LVL 29

Expert Comment

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

http://technet.microsoft.com/en-us/magazine/ff431742.aspx
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 53

Expert Comment

by:McKnife
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.
0
 
LVL 29

Expert Comment

by:becraig
ID: 40024782
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
 
LVL 29

Accepted Solution

by:
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:
c:\path-to-your-program\program.exe
Then modify and edit value data:
Add the value:  "RUNASADMIN"

That works for me.
0
 
LVL 53

Expert Comment

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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
The password reset disk is often mentioned as the best solution to deal with the lost Windows password problem. In Windows 2008, 7, Vista and XP, a password reset disk can be easily created. But besides Windows 7/Vista/XP, Windows Server 2008 and ot…
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
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…

861 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now