Solved

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

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Disabling the Directory Sync Service Account in Office 365 will stop directory synchronization from working.
This script can help you clean up your user profile database by comparing profiles to Active Directory users in a particular OU, and removing the profiles that don't match.
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
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…

820 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