How to launch an app as administrator without giving the user local admin group membership?

An app has to be launched as administrator, otherwise, it will not run properly.
But i do not want the computer user to be the member of local administrator group, for security reasons.
How would you make it?

Thanks!
LVL 1
techcityAsked:
Who is Participating?
 
McKnifeConnect With a Mentor Commented:
There is no secure way to achieve that goal. People might tell you there is, but those methods are utterly insecure.

The only secure way are 3rd party utilities like Powerbroker
0
 
John TsioumprisSoftware & Systems EngineerCommented:
There is a trick where you use task scheduler to create a task with admin rights and then you create a shortcut with the name of the task
schtasks /run /tn “TheTaskName”

Open in new window

Quotes
"

Open in new window

are needed....
0
 
McKnifeCommented:
That is no trick. And it will not work since tasks that you start elevated will not show visibly. If they show for you, it's because you use the same user account and you are admin already.
0
 
NVITCommented:
@ John,

I think one concern is while the program is running. What can the user do in the program? Can they access sensitive files? Can they run programs to elevate their non-admin account? etc.
0
All Courses

From novice to tech pro — start learning today.