PC Review


Reply
Thread Tools Rate Thread

Re: Mass user script

 
 
Johan Arwidmark
Guest
Posts: n/a
 
      30th Jun 2003
create a simple vbscript like:

Set objRootDSE = GetObject("LDAP://rootDSE")
Set objContainer = GetObject("LDAP://cn=Users," & _
objRootDSE.Get("defaultNamingContext"))

For i = 1 To 1000
Set objLeaf = objContainer.Create("User", "cn=UserNo" & i)
objLeaf.Put "sAMAccountName", "UserNo" & i
objLeaf.SetInfo
Next
Wscript.Echo "1000 Users created."

regards
Johan Arwidmark

On Sun, 29 Jun 2003 16:44:19 -0700, "Cary Shultz"
<(E-Mail Removed)> wrote:

>
>>-----Original Message-----
>>I know there is a script that allows you to add multiple
>>new users in a generic name like Term1, Term2, etc. Can
>>anyone tell me the script path or what needs to be done

>to
>>do such a thing, they dont need to be passworded either,
>>very basic accounts. Thanks Guys!
>>.

>ADDUSERS would be a great choice. It has the advantage of
>allowing you to specify passwords. Essentially, you just
>need to populate the first three fields.
>
>LDIFDE would be another great choice. However, you can
>not specify passwords with LDIFDE.
>
>Yet another choice would be CSVDE, which would be the way
>to go if you have an excel speadsheet with all of the
>information already.
>
>HTH,
>
>Cary


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: how do i do a mass change of user's Name (CN) Cary Shultz [A.D. MVP] Microsoft Windows 2000 Active Directory 1 15th Sep 2004 07:17 PM
Re: how do i do a mass change of user's Name (CN) Dan Mellem Microsoft Windows 2000 Active Directory 0 14th Sep 2004 08:42 PM
Script to mass add junk senders Rick Microsoft Outlook 0 9th Jun 2004 05:22 PM
mass user entry into AD ryan Microsoft Windows 2000 Active Directory 1 16th Oct 2003 04:41 PM
mass new user additions ryan Microsoft Windows 2000 New Users 0 16th Oct 2003 04:32 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:28 AM.