+ Post New Thread
Results 1 to 10 of 10
Windows Server 2008 Thread, Tool to bulk create users / create single user easily? in Technical; Does anyone know of any tool I may be able to use to bulk create users on my Windows 2008 ...
  1. #1
    reggiep's Avatar
    Join Date
    Apr 2008
    Location
    In the vast area of space and time
    Posts
    1,085
    Thank Post
    290
    Thanked 36 Times in 34 Posts
    Rep Power
    19

    Tool to bulk create users / create single user easily?

    Does anyone know of any tool I may be able to use to bulk create users on my Windows 2008 domain? At the moment I do have an excel spreadsheet that creates shares etc but I'd quite like to find a tool to do this especially if it could be set up to create single users simply, as I am a lazy man.

    Thanks

  2. #2

    DaveP's Avatar
    Join Date
    Oct 2006
    Location
    Can't talk now: The mother-ship is calling!
    Posts
    4,491
    Blog Entries
    1
    Thank Post
    168
    Thanked 663 Times in 419 Posts
    Rep Power
    511
    Hi,

    This has been discussed before. Try this post:

    Edugeeek Link: Active User Manager Post

    I used it [Active User Manager] on Windows Server 2008 for the first time this year to add users for a whole years' intake and it saved me loads of heartache.
    Last edited by DaveP; 27th September 2009 at 09:16 PM. Reason: Add detail to clarify post.

  3. Thanks to DaveP from:

    adamchapman (20th August 2010)

  4. #3

    Join Date
    Jun 2009
    Posts
    24
    Thank Post
    0
    Thanked 7 Times in 4 Posts
    Rep Power
    7
    addusers.exe feeds them in from a CSV. It's in one of the resource kits. Combine it with a batch script to use the same csv to create home directories and shares

  5. #4

    RabbieBurns's Avatar
    Join Date
    Apr 2008
    Location
    Sydney
    Posts
    4,510
    Blog Entries
    6
    Thank Post
    930
    Thanked 402 Times in 257 Posts
    Rep Power
    141
    I use the wiseman spreadsheet. Not tried it with 2008 but I cant see why it wouldnt work.

  6. #5

    Join Date
    May 2007
    Location
    Hull, UK
    Posts
    256
    Thank Post
    6
    Thanked 13 Times in 13 Posts
    Rep Power
    12
    +1 for Active User Manager

    Great for resetting permissions on home directories too. Saved me a few days work creating scripts etc

  7. #6

    john's Avatar
    Join Date
    Sep 2005
    Location
    Yorkshire
    Posts
    9,092
    Thank Post
    960
    Thanked 719 Times in 639 Posts
    Rep Power
    195
    Wisesoft Spreadsheet - http://www.wisesoft.co.uk/software/a...t/default.aspx Used with 2008 and worked fine for me

    Combined with:

    Wisesoft Bulk AD - http://www.wisesoft.co.uk/software/b...s/default.aspx for adding extra bits, tidying up existing accounts etc worked very well for me

  8. #7
    marekbrad's Avatar
    Join Date
    May 2006
    Location
    Bradford
    Posts
    106
    Thank Post
    23
    Thanked 25 Times in 18 Posts
    Rep Power
    16
    I Use Dovestones Tools ... have done for years ... they are not free but very stable and their support is great

    Active Directory Tools, Active Directory Software

  9. #8

    Join Date
    Jun 2008
    Location
    London
    Posts
    57
    Thank Post
    25
    Thanked 4 Times in 4 Posts
    Rep Power
    0
    Hi,

    Anyone know if Active User Manager works OK with W2k8 R2?

    Cheers!

  10. #9

    Join Date
    May 2010
    Location
    Stoke
    Posts
    7
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    You could try a vb script similar to this and just have a list of accounts you want in an Excel (2003) file:
    Option Explicit
    Dim objRootLDAP, objContainer, objUser, objShell
    Dim objExcel, objSpread, intRow
    Dim strUser, strOU, strSheet, strOUGroup, strDomain
    Dim strCN, strSam, strFirst, strLast, strPWD



    Dim strYear, strServer,strGroup,strDNSDomain,objGroup,strDesc,u sersadded

    usersadded = 0

    ' -------------------------------------------------------------'
    ' Important change OU= and strSheet to reflect your domain
    ' -------------------------------------------------------------'


    strYear= "09" 'the year of entry for the pupils
    strServer = "nas" 'the server where users home dirs will be stored


    strGroup = "CN=Pupils ,"
    strOU = "OU=09Pupils,OU=Pupil Accounts,OU=Accounts ," ' Note the comma
    strOUGroup = "OU=Pupil Accounts,OU=Accounts ,"
    strDomain = "your domain here"


    strSheet = "C:\createusers\createusers.xls"

    ' Bind to Active Directory, Users container.
    Set objRootLDAP = GetObject("LDAP://rootDSE")
    Set objContainer = GetObject("LDAP://" & strOU & _
    objRootLDAP.Get("defaultNamingContext"))

    ' Open the Excel spreadsheet
    Set objExcel = CreateObject("Excel.Application")
    Set objSpread = objExcel.Workbooks.Open(strSheet)
    intRow = 2 'Row 1 often contains headings

    ' Here is the 'DO...Loop' that cycles through the cells
    ' Note intRow, x must correspond to the column in strSheet
    Do Until objExcel.Cells(intRow,2).Value = ""

    strLast = Trim(objExcel.Cells(intRow, 2).Value)
    strFirst = Trim(objExcel.Cells(intRow, 3).Value)


    'code added to create usernames based on pupil names and year of entry

    strSam = strYear & LCase(Left(strLast,3)) & LCase(Left(strFirst,3))
    strCN = strSam
    strPWD = "pass" 'the default password for generated accounts
    strUser = "CN=" & strSam & " ,"
    strDesc = "UPN: " & Trim(objExcel.Cells(intRow, 1).Value) & " DOB: " & Trim(objExcel.Cells(intRow, 4).Value) ; 'adds UPN and DOB to user desc field




    ' Build the actual User from data in strSheet.
    Set objUser = objContainer.Create("User", "cn=" & strSam)

    objUser.sAMAccountName = strSam
    objUser.userPrincipalName = strSam & "@" & strDomain
    objUser.givenName = strFirst
    objUser.sn = strLast
    objUser.homeDirectory = "\\" & strServer & "\users$\" & strYear & "\" & strSam
    objuser.homeDrive = "M:"
    objuser.LoginScript = "logon.bat"
    objuser.description = strDesc

    On Error Resume Next
    objUser.SetInfo


    if Err.Number <> 0 then
    WScript.Echo "Error Creating: " & strSam & " For " & strFirst & " " & strLast
    else
    usersadded = usersadded + 1
    end if

    ' Separate section to enable account with its password
    objUser.userAccountControl = 512
    objUser.pwdLastSet = -1
    objUser.SetPassword strPWD
    objUser.SetInfo

    'code for Terminal Service Profile Path

    objUser.TerminalServicesProfilePath = "\\" & strServer & "\UserTSProfiles$\" & strSam
    objUser.SetInfo


    'end of added code


    'code to add to Pupils Group

    Set objRootLDAP = GetObject("LDAP://RootDSE")
    strDNSDomain = objRootLDAP.Get("DefaultNamingContext")


    Set objUser = GetObject("LDAP://"& strUser _
    & strOU & strDNSDomain)

    Set objGroup = GetObject("LDAP://"& strGroup _
    & strOUGroup & strDNSDomain)
    objGroup.add(objUser.ADsPath)
    'end of code added



    intRow = intRow + 1
    Loop
    objExcel.Quit

    WScript.Echo usersadded & " User(s) Added"
    WScript.Quit
    Last edited by g110yd; 27th May 2010 at 04:36 PM.

  11. #10
    TheLibrarian's Avatar
    Join Date
    Apr 2009
    Location
    Wolverhampton
    Posts
    874
    Thank Post
    143
    Thanked 190 Times in 142 Posts
    Rep Power
    61
    I can personally highly recommend this XIA Automation Server - CENTREL Solutions which will not just automate user creation but just about anything I've managed to think of so far.

    I stress personally because until we use it for 6 - 12 months we won't put the school name to recommend it.

    It's not free, but it's extremely cheap.

    And I'm not affiliated to them in anyway.
    Last edited by TheLibrarian; 27th May 2010 at 01:31 PM. Reason: Not affiliated etc.

SHARE:
+ Post New Thread

Similar Threads

  1. Active Directory - Single and Bulk User creation and FREE!!
    By siuko in forum How do you do....it?
    Replies: 33
    Last Post: 31st January 2012, 05:09 AM
  2. Create Bulk users and Folders
    By DanW in forum Scripts
    Replies: 14
    Last Post: 20th September 2009, 04:08 PM
  3. Replies: 3
    Last Post: 16th September 2009, 02:22 PM
  4. Create bulk ad groups from a csv file
    By ful56_uk in forum Windows
    Replies: 2
    Last Post: 20th July 2009, 06:06 PM
  5. Replies: 4
    Last Post: 12th July 2006, 10:59 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •