Solved

Creating batch file to auto install as domain admin

Posted on 2014-04-29
2
322 Views
Last Modified: 2014-04-29
It's been awhile since i have used batch files. I am trying to create a batch file to include runas /user:domain\admin password

Is the above line correct. It doesn't seem to work and is prompting me for a passoword.

Thanks in advance for your help
0
Comment
Question by:cslinger
2 Comments
 
LVL 83

Accepted Solution

by:
oBdA earned 500 total points
ID: 40029815
That's not possible by design. Microsoft did not implement a password argument to avoid exactly this situation: that an admin password is stored as clear text in a batch script.
That said, try if one of these work for you:
* cpau from http://www.joeware.net/freetools/tools/cpau/index.htm
* lsrunas/lsrunase from http://www.moernaut.com/
0
 

Author Comment

by:cslinger
ID: 40029823
thanks
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

David Varnum recently wrote up his impressions of PRTG, based on a presentation by my colleague Christian at Tech Field Day at VMworld in Barcelona. Thanks David, for your detailed and honest evaluation!
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

863 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

21 Experts available now in Live!

Get 1:1 Help Now