Tech or Treat! Write an article about your scariest tech disaster to win gadgets!Learn more

x
?
Solved

Creating batch file to auto install as domain admin

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

Q2 2017 - Latest Malware & Internet Attacks

WatchGuard’s Threat Lab is a group of dedicated threat researchers committed to helping you stay ahead of the bad guys by providing in-depth analysis of the top security threats to your network.  Check out our latest Quarterly Internet Security Report!

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 connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
Starting up a Project
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…

647 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