Solved

Creating batch file to auto install as domain admin

Posted on 2014-04-29
2
321 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 82

Accepted Solution

by:
oBdA earned 500 total points
Comment Utility
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
Comment Utility
thanks
0

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Join & Write a Comment

The use of stolen credentials is a hot commodity this year allowing threat actors to move laterally within the network in order to avoid breach detection.
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

762 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

8 Experts available now in Live!

Get 1:1 Help Now