Add user from command line
Wednesday, September 23, 2009
Leave a Comment
Some times we may want to add users from command line instead of using the UI. For example, if we have to add some 100 users, using a script will save lot of time and manual effort.
To add a user from command line:
To add a user from command line:
net user username userpasswd /ADD
To add a user to the domain:
net user username userpasswd /ADD /DOMAIN
Note that we do not need to specify the domain name here.
To add a user to the domain:
net user username userpasswd /ADD /DOMAIN
Note that we do not need to specify the domain name here.
0 comments »
Leave your response!