IT CAMPER
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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\CreateAdmin Account.vb s
Regards,
Rob.
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\CreateAdmin
Regards,
Rob.
ASKER