You can use a VBS script to add the account, set the password, and enable it. You can even add it to the OU of your choice. You can also set things like when account expires, address, tile, phone, etc. of the user you are adding.
Here is some sample code that I pulled from my script. This won't work out of the box but gives some idea of how to get it going. We use a 40+ comma delimited file that is loaded each night. We add and delete accounts daily based on this file. We built error checking and email. We just check our email each day to view log files and that is about it as far as account creation goes. Set adsdomainobj = GetObject("LDAP://ou=test,DC=domainname,DC=com) Set adsuserobject = adsdomainobj.Create("user", "cn=JoeUser"& ) ' set basic properties ' adsuserobject.Put "sAMAccountName", username adsuserobject.Put "name", username adsuserobject.SetInfo 'save the properties added to make sure account is added. 'cannot set other properties unless the account is added. adsuserobject.GetInfo 'gets the account info so you can set the following the properties adsuserobject.AccountDisabled=False adsuserobject.IsAccountLocked = False adsuserobject.accountexpirationdate = datetoexpire adsuserobject.SetInfo 'save the properties added adsuserobject = user object that is being modified accountexpirationdate is the AD field that has the value. datetoexpire = variable for the date to expire the account The format for datetoexpire = "January 1 2002" -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Diwakar Shetty Sent: Wednesday, January 16, 2002 10:51 PM To: [EMAIL PROTECTED] Subject: Re: [ActiveDir] Programmatically adding user account I used the LDIFDE tool for creating 5000 users on Acive Directory. However, there are two issues. 1) User accounts are disabled. One needs to enable it by going to Start->ProgramFiles->Administrative Tools->Active Directory Users and Computers 2) Passwords cannot be set. Regards Diwakar Elizabeth Farrell wrote: > Hi Diwakar.....I use the LDIFDE tool to automate account creation on AD. > Here is my guide: > > << BTW, I create about 149000 accounts daily for a test environ. using this > method>> > > Regards > E. ********************************************************* Disclaimer This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. ********************************************************* Visit us at http://www.mahindrabt.com List info : http://www.activedir.org/mail_list.htm List FAQ : http://www.activedir.org/list_faq.htm List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/ List info : http://www.activedir.org/mail_list.htm List FAQ : http://www.activedir.org/list_faq.htm List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/