Solved

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

Posted on 2012-03-19
2
426 Views
Last Modified: 2012-05-23
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
0
Comment
Question by:tog2012
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 8

Accepted Solution

by:
ozzeczek earned 500 total points
ID: 37739831
Read about runas in cmd ; )
I just wonder whether there will be a problem with remembering passwords /savecred  can not handle it. Alternatively, you can use additional software:
http://www.commandline.co.uk/sanur/
0
 
LVL 7

Expert Comment

by:hirenvmajithiya
ID: 37740795
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
0

Featured Post

Office 365 Advanced Training for Admins

Special Offer:  Buy 1 course, get 2nd free!  Buy the 'Managing Office 365 Identities & Requirements' course w/ Accelerated TestPrep, and automatically receive the 'Enabling Office 365 Services' course FREE!

Question has a verified solution.

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

While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
This article runs through the process of deploying a single EXE application selectively to a group of user.
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…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

737 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