?
Solved

Creating batch file to auto install as domain admin

Posted on 2014-04-29
2
Medium Priority
?
328 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
[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 85

Accepted Solution

by:
oBdA earned 2000 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

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

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

In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
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 …
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…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

764 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