Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Add another local Admin to remote workstations 1

Status
Not open for further replies.

DBarnes

IS-IT--Management
Aug 22, 2001
127
US
How can I add another local admin account to remote workstations? I do not want to add another domain account just a local account to the machine and I need to do this for 200 computers around the State.

Can anyone help?
 
I just put this together. Its a pretty simple bat file that seems to do the job. You may want try out on a select few computers in an OU to see if it produces the results you are after. Open notepad and paste this in and save the file with a .bat extension. Change the parameters to your liking. (ex. jsmith= name for the account you want to add; Cust0mPassw0rd= the actual password you want to assign to the account)

@ echo off
net user jsmith Cust0mPassw0rd /add
net localgroup Administrators jsmith /add

Push this out via Group Policy as a Startup Script.

Joey
A+, Network+, MCP
 
I just saw that also and got it working. Thanks for the information anyway.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top