Batch file for creating user accounts?

Soldato
Joined
27 Aug 2003
Posts
9,827
Location
West Midlands
Hey guys, can someone give me a quick guide on how to make a batch file to add a user account with admin rights and a password?

Ta Muchly

ScoobyDoo69
 
pretty sure you use...

net add



do net add /? and it should tell you..

ss64.com is good, might be able to help you
 
use the net user command at a cmd prompt.

net user /? should give you all the options and allow you to add an account to the local machine
 
This should be all you need in a batch file:

Code:
net user <username> <password> /add
net localgroup Administrators <username> /add

Replace <username> with the name you want the user to have and
<password> with the password you want the user to have

Andy
 
Back
Top Bottom