Grant admin rights on an application
Solution 1
I have used RUNASSPC with great success. It allows you to create a short cut to the program with encrypted administrator credentials.
So the program is run with administrative privileges even if started from a normal user account, but the normal user can't (easily) access the administrator credentials.
Many examples are available here.
Solution 2
CPAU:
Summary
Command line tool for starting process in alternate security context. Basically this is a runas replacement. Also allows you to create job files and encode the id, password, and command line in a file so it can be used by normal users.
You can save "jobs" for later. It encrypts the password.
cpau -u joehome\joe -p logon -ex "perl cleanup.pl" -enc -file cleanup.job
Creates job file called cleanup.job to run perl script cleanup.pl as joehomejoe
cpau -dec -file cleanup.job -lwp
Execute job file cleanup.job
:)
Solution 3
I think I found what you are looking for, it's a program that is free and it should do what you are hoping to accomplish.
This is intended for a domain admin type setup, but it looks like you can do it locally.
Simply on your administrator side you would build the RAG file (an encrypted file hosing the admin credentials for the client to use). You would set the permission to the file/program available to be run as an admin.
Then you would copy the RAG file over to the non-admin side and install the CLIENT for Runas-GUI. Then import the RAG file and they should, theoretically, have access.
Solution 4
so are you saying you have this program exe1.exe
and this program launches another program (e.g. exe2.exe
) and you want to have it run exe1 without admin privileges but run exe2 with admin privileges?
if so setting exe2's compatibility mode to require admin privileges should work.
find the exe you want run as admin, open its properties dialog, go to the compatability tab and check run this program as administrator
(as highlighted in this image google found for me:
if they are not separate executables I don't think it is possible.
Solution 5
You can create a scheduled task that runs the target application. Set the scheduled task to run with credentials that have administrator rights. You can create a shortcut to run the scheduled task for users that only have standard credentials, but when the task runs it will still use the administrator credentials.
Related videos on Youtube
Frantumn
Updated on September 18, 2022Comments
-
Frantumn over 1 year
I'm want to grant a user administrative rights to one application on Windows 7. I don't want them to be able to have full admin rights, but admin rights are required for one of the applications they need to use.
Is there a way to set up a batch script or something where the user won't know it's being run as admin?
Or is there another way?
How can I accomplish this?
-
Synetech over 11 yearsWhat? Where did you get the second program from? They want to allow a user to run a program that requires admin privileges without giving them universal admin rights.
-
chipgw over 11 years@Synetech he said "I don't want them to be able to have full admin rights, but admin rights are required for one of the applications they need to use." that sounded like one program launching another to me...
-
Frantumn over 11 yearsSorry Chip, Syntech is right. Thanks for the answer tho.
-
ChimneyImp over 11 yearsAre there any security concerns from doing this? Privilege escalation or whatnot?
-
Joel Coehoorn over 11 yearsIt means any user on that machine can run that program, not just the one you want to give access for. Also, I'm not 100% sure it will work, because you may still need to pass a UAC prompt.
-
MUY Belgium over 9 yearsFree for private use??? That's means I cannot use it at work!!!
-
Ajasja over 9 yearsYes, that would appear to be the case. 4€/computer is not that much. I Guess you could ask them if you can only buy one license. Or of course use something else eg., jc.bellamy.free.fr/en/superexec.html