Avatar of tog2012
tog2012
 asked on

Using a Batch File to launch an application (auto entering admin credentials)

Good Day All,
I have a small issue that I can't seem to figure out and would apprciate any help.

Essentially what I like to do is to create a batch file which when double clicked on, will launch a particular software, first having automatically applied the administrator credentials. I don't 'want the user to have to enter this credentials each time they need to use the software.

Eventually the plan is to put this batch file in the startup items, so that when the computer reboots and gets to the desktop, this application is automatically opened up , first having automatically applied the administrator credentials (using the batch file). I don't want to provide the user with admininstrator credentials anyways, and would much rather prefer that everything is automated as described above.

Thanks for your time.

Rez
Microsoft Legacy OSActive Directory

Avatar of undefined
Last Comment
hirenvmajithiya

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
ozzeczek

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
hirenvmajithiya

For your need, you need to follow two steps:
(1) Create a batch file using runas command and an application to run.
(2) Wrap that batch file to an exe with the help of bat to exe converter.

Then, apply this exe to user's logon script. This will run without any verbose and serve your purpose.

Hiren
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck