MSFN Forum: creating users Acount - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

creating users Acount best way Rate Topic: -----

#1 User is offline   Lus 

  • Junior
  • Pip
  • Group: Members
  • Posts: 65
  • Joined: 09-July 05

Posted 18 April 2006 - 10:02 PM

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 .

This post has been edited by Lus: 18 April 2006 - 10:09 PM



#2 User is offline   fizban2 

  • MSFN Addict
  • Group: Super Moderator
  • Posts: 1,898
  • Joined: 14-April 05
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 19 April 2006 - 08:05 AM

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

#3 User is offline   Lus 

  • Junior
  • Pip
  • Group: Members
  • Posts: 65
  • Joined: 09-July 05

Posted 19 April 2006 - 08:53 PM

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

This post has been edited by Lus: 19 April 2006 - 09:32 PM


#4 User is offline   fizban2 

  • MSFN Addict
  • Group: Super Moderator
  • Posts: 1,898
  • Joined: 14-April 05
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 19 April 2006 - 10:06 PM

CSVDE and LDIFDE

#5 User is offline   tguy 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 698
  • Joined: 19-May 04

Posted 06 June 2006 - 10:44 PM

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."

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy