?
Solved

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

Posted on 2012-03-19
2
Medium Priority
?
428 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 2000 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

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

After seeing many questions for JRNL_WRAP_ERROR for replication failure, I thought it would be useful to write this article.
In the absence of a fully-fledged GPO Management product like AGPM, the script in this article will provide you with a simple way to watch the domain (or a select OU) for GPOs changes and automatically take backups when policies are added, removed o…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…
Suggested Courses
Course of the Month11 days, 11 hours left to enroll

752 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