Jump to content

Recommended Posts

Posted (edited)

hi

what's best way for creating 100 user acount ?

using template user account is time consuming work. is any VBS or BAT file for automate it job ?

all user are the same .

Edited by Lus

Posted

are all these users in csv or file that you can create into a csv? if so LDFIDE might work. goog it for more information

Posted (edited)

then

what is diffrent bit these utility " LDIFDE " and " CSVDE " ?

Edited by Lus
  • 1 month later...
Posted

ADSI scripting works well to.

Here is a script that will create a 100 named users and set their password.

Set objRootDSE = GetObject("LDAP://rootDSE")

Set objContainer = GetObject("LDAP://OU=ADTEST,OU=APPS,OU=CAMPUS," & _

objRootDSE.Get("defaultNamingContext"))

For i = 1 To 100

Set objLeaf = objContainer.Create("User", "cn=Test" & i)

objLeaf.Put "sAMAccountName", "Test" & i

objLeaf.SetInfo

objLeaf.SetPassword("password" & i)

objLeaf.AccountDisabled = False

objLeaf.SetInfo

Next

WScript.Echo "100 Users created."

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...