Solved

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

Posted on 2012-03-19
2
420 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
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

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Join & Write a Comment

Suggested Solutions

Many admins will agree: WSUS is is a nice invention but using it on the client side when updating a newly installed computer is still time consuming as you have to do several reboots and furthermore, the procedure of installing updates, rebooting an…
Introduction You may have a need to setup a group of users to allow local administrative access on workstations.  In a domain environment this can easily be achieved with Restricted Groups and Group Policies. This article will demonstrate how to…
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…
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…

706 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

19 Experts available now in Live!

Get 1:1 Help Now