What is the best way to create several users all at one time. I can't imagine having to add several dozen users just by the AD users and computers snap in.
Printable View
What is the best way to create several users all at one time. I can't imagine having to add several dozen users just by the AD users and computers snap in.
You can add users via the command prompt and a batch file. That what I did when I work for a school which had hundreds of new students every year... If you want I can dig up the commands.
I would like the commands. Thanks!!
I found this which is probably your easiest option:
http://support.microsoft.com/?kbid=199878
To create a user using ADSI...
VB Code:
Set DomainObj = GetObject("WinNT://Domain") Set UserObj = DomainObj.Create("user", "vb-guru") UserObj.SetInfo Set UserObj = Nothing
Did you have any problems with permissions when executing those commands from DOS? Got any example code?Quote:
Originally Posted by -TPM-
I tried the solution that TPM suggested (the MS link) and it said it couldn't find a PDC to handle my request. :( I was on the Primary Domain controller when I tried it too.
Hmm it was a long time ago I did it (like 6 years) I don't rememer there being any problems with setting security. Digging around I found a referance to csvde in windows help, it says it's for importing csv files into active directory so that may work... I'll keep digging and try to find the command I used.
Ok you should be able to use : net user [username] [password] /add [domain]
I think that's what i used...