Link to home
Start Free TrialLog in
Avatar of IT CAMPER
IT CAMPERFlag for United States of America

asked on

Need script of batch to create new local admin account

I am wanting to batch create a local admin account on all domain workstations using a batch or script and also set the password for such account.  I would also like to then disable to built-in local admin account on those same machines.
ASKER CERTIFIED SOLUTION
Avatar of RobSampson
RobSampson
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of IT CAMPER

ASKER

How best to run this against all of the computers on the network in a batch execution?  psexec?
Is it possible to assign it as a StartUp script? That would probably be easiest.

Otherwise, yeah, you can use PSExec to run it against a list of computers.

Something like this should work:
psexec @computers.txt -accepteula -u domain\admin -p password wscript.exe //B \\server\share\CreateAdminAccount.vbs

Regards,

Rob.