Discussion Locked

automating user creation in Win2k

0 helpful
4 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi !! techs

i want to automate the process of creating users in Win2k Servers. this has been a challenging task.

do u guys have any scripts that can be used to automate/ease the creation of users. i have hundreds of users to create in a server.

any help ??

4 replies

by joseph moore

Run this from the Command Prompt on your Win2K Domain Controller:

NET USER "username" "password" /ADD /DOMAIN

Replace "username" with whatever user name you want, and "password" with whatever password your user will use.

That will then create the username in AD.

You can put multiple entries in a BAT file, and run the BAT file to create all of the users at once.

There are many options you can set also.Just open a Command Prompt and type in:
NET HELP USER
to see all of the options.

hope this helps

by voldar

There is also the ldifde command for importing/exporting users in AD from a text file. An example of such file (contaning 1 user):

DN: CN=James Smith,OU=TEST,DC=my,DC=test,DC=com
objectclass: user
samAccountName: James
userPrincipalName: James@my.test.com
displayName: James Smith
userAccountControl: 512

Important! > You have to create first the OU's from which the users will be part of.

This discussion is closed to new replies.