Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 331
  • Last Modified:

Creating batch file to auto install as domain admin

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
cslinger
Asked:
cslinger
1 Solution
 
oBdACommented:
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
 
cslingerAuthor Commented:
thanks
0

Featured Post

Automating Your MSP Business

The road to profitability.
Delivering superior services is key to ensuring customer satisfaction and the consequent long-term relationships that enable MSPs to lock in predictable, recurring revenue. What's the best way to deliver superior service? One word: automation.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now