+ 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,550
    Thank Post
    518
    Thanked 56 Times in 50 Posts
    Rep Power
    30

    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
    8,981
    Thank Post
    352
    Thanked 1,300 Times in 890 Posts
    Blog Entries
    4
    Rep Power
    1131
    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 08: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
    12
    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
    5,527
    Thank Post
    1,339
    Thanked 470 Times in 307 Posts
    Blog Entries
    6
    Rep Power
    200
    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
    17
    +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
    London
    Posts
    10,619
    Thank Post
    1,499
    Thanked 1,053 Times in 922 Posts
    Rep Power
    304
    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
    138
    Thank Post
    25
    Thanked 38 Times in 31 Posts
    Rep Power
    23
    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
    62
    Thank Post
    26
    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 03:36 PM.

  11. #10
    TheLibrarian
    Guest
    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 12: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: 39
    Last Post: 20th June 2012, 11:29 AM
  2. Create Bulk users and Folders
    By DanW in forum Scripts
    Replies: 14
    Last Post: 20th September 2009, 03:08 PM
  3. Replies: 3
    Last Post: 16th September 2009, 01:22 PM
  4. Create bulk ad groups from a csv file
    By ful56_uk in forum Windows
    Replies: 2
    Last Post: 20th July 2009, 05:06 PM
  5. Replies: 4
    Last Post: 12th July 2006, 09: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
  •