+ Post New Thread
Page 2 of 3 FirstFirst 123 LastLast
Results 16 to 30 of 31
Windows Thread, Creating new users? in Technical; Built in Microsoft AD tool DSADD. Works perfectly once you have an excel template set-up then it's just copy and ...
  1. #16

    Join Date
    Jun 2010
    Posts
    198
    Thank Post
    9
    Thanked 25 Times in 24 Posts
    Rep Power
    20
    Built in Microsoft AD tool DSADD. Works perfectly once you have an excel template set-up then it's just copy and paste to a dos prompt

  2. #17
    zag
    zag is offline
    zag's Avatar
    Join Date
    Mar 2007
    Posts
    3,530
    Thank Post
    815
    Thanked 380 Times in 317 Posts
    Blog Entries
    12
    Rep Power
    80
    Quote Originally Posted by siuko View Post
    Active User Manager - Free and works great...

    Dont know which OS you have - it states that it works on Win2k and Win2k3
    That actually looks pretty good. Worked well on my test CSV files.

    But how do you create the user home drives?

  3. #18

    3s-gtech's Avatar
    Join Date
    Mar 2009
    Location
    Wales
    Posts
    2,484
    Thank Post
    133
    Thanked 488 Times in 436 Posts
    Rep Power
    138
    You'll need to do that with a script, then use NTFSFix to set the permissions. That's the reason I dropped AUM, it took several times longer to use for me than AM.

    Edit: you'll also need to set ownership for the folders for the FSRM. I have a script for this, place a copy of chown.exe in the main user folder, with this script:

    Code:
    rem sets permission on all files according to home directory name, place this and chown.exe into the \userfolders folder then run it.
    
    for /D %%i in (*) do (
    chown -r %%i "%%i\*.*"
    )
    Last edited by 3s-gtech; 9th July 2010 at 09:59 AM.

  4. #19

    Join Date
    Jun 2010
    Posts
    198
    Thank Post
    9
    Thanked 25 Times in 24 Posts
    Rep Power
    20
    Just create a batch file with the md command and run that in the folder you want to create your directories in. Then run calcs to assign the permissions on the folders.

    kili

  5. #20
    browolf's Avatar
    Join Date
    Jun 2005
    Location
    Mars
    Posts
    1,497
    Thank Post
    101
    Thanked 84 Times in 71 Posts
    Blog Entries
    46
    Rep Power
    37
    have my own wsh script but i have to manually create the userareas with xcacls and rmtshare. if you have the foldernames the same as the usernames it's easy.

    create folders from a list of usernames
    for /f %a in ('type usernames.csv') do mkdir %a

    then for xcalcs and rmtshare operations you just have to do

    for /f %a in ('dir *. /b') do whatever %a




    i have to modify it this year to included registration numbers in an arbitrary ad field as matching ad data to sims data is a manual job in excel at the moment.
    Last edited by browolf; 9th July 2010 at 10:11 AM.

  6. #21
    TheLibrarian
    Guest
    Here's one version of the scripts I used to use, not the last one because I couldn't find it.

    I probably deleted the latest version when we bought XIA Automation.

    Should go without saying but I'll say it anyway: you use / modify these scripts at your own risk.


    MakeUsers.bat
    Code:
    @echo off
    if "%1" == "" goto instruct
    if "%1" == "/?" goto instruct
    if not exist "%1" goto end
    
    :start
    setlocal
    for /f "skip=1 delims=, tokens=1,2,3" %%i in (%1) do (
    call makeusers_dsadd.bat %%i %%j %%k DoIt
    )
    goto end
    
    :instruct
    cls
    echo Usage:
    echo makeusers [drive:\path\filename]
    echo [filename] must refer to a comma separated value file.
    echo,
    echo The CSV file must contain:
    echo One blank line at the top then on each following line forname,surname,username.
    echo If you want the username to be auto-generated enter the username as ZZZ.
    echo,
    echo Requirements:
    echo RCMD access to the server that the Home Directories are located on.
    echo W2K Resource Kit commands XCACLS RCMD be available in the path.
    echo Must run on XP Pro or W2K3 server (for DSADD and DSQUERY).
    goto end
    
    :end
    makeusers_dsadd
    Code:
    @echo off
    setlocal
    REM Check the Home Directory Path!
    net use x: \\FP3\d$
    set hdd=X:
    set hdp=\users\2007intake\
    set svrhdd=D:
    set svrhdp=\users\2007intake\
    if not exist "%hdd%%hdp%." goto errorhdp
    REM Check this has been called correctly
    if not "%4" == "DoIt" goto end
    if "%3" == "ZZZ" goto create_samid
    set c_samid=%3
    goto doit
    
    :create_samid
    set init=%1
    set c_samid=07%2%init:~0,1%
    
    :doit
    for /f "delims=^^^" %%l in ('dsquery user -samid %c_samid%') do goto error
    for /f "delims=^^^" %%l in ('dsquery user -name "%1 %2"') do goto error
    %hdd%
    cd "%hdp%"
    md "%c_samid%"
    "c:\program files\resource kit\rcmd\rcmd" \\FP3 c:\winnt\system32\net share %c_samid%$="%svrhdd%%svrhdp%%c_samid%" /UNLIMITED /GRANT:Everyone,FULL /CACHE:NO /REMARK:"%c_samid%'s Home Directory"
    dsadd user "CN=%1 %2,OU=2007,DC=st-thomasmore,DC=walsall,DC=gov,DC=uk" -fn %1 -ln %2 -samid %c_samid% -display "%1 %2" -pwd 123456 -upn %c_samid%@st-thomasmore.walsall.gov.uk -profile \\FP3\profiles$\%c_samid% -loscr curric.bat -hmdir \\FP3\%c_samid%$ -hmdrv h: -memberof "CN=07Accounts,OU=2007,DC=st-thomasmore,DC=walsall,DC=gov,DC=uk"
    
    "C:\Program Files\Resource Kit\xcacls.exe" "%hdd%%hdp%%c_samid%" /Y /P administrators:F
    :redo
    "C:\Program Files\Resource Kit\xcacls.exe" "%hdd%%hdp%%c_samid%" /E /G %c_samid%:F
    if errorlevel 1 goto redo
    "C:\Program Files\Resource Kit\xcacls.exe" "%hdd%%hdp%%c_samid%" /E /G "Full Control to Pupils Home Directories:F"
    goto end
    
    :error
    echo %1 %2 common name or %c_samid% alread exists!>>error.txt
    echo %1 %2 common name or %c_samid% alread exists!
    goto end
    
    :errorhdp
    echo Home Directory Path Invalid!
    goto end
    
    :end

  7. #22

    plexer's Avatar
    Join Date
    Dec 2005
    Location
    Norfolk
    Posts
    12,966
    Thank Post
    587
    Thanked 1,495 Times in 1,341 Posts
    Rep Power
    398
    Dovestones tools here as well excellent for the price.

    Ben

  8. #23
    zag
    zag is offline
    zag's Avatar
    Join Date
    Mar 2007
    Posts
    3,530
    Thank Post
    815
    Thanked 380 Times in 317 Posts
    Blog Entries
    12
    Rep Power
    80
    Quote Originally Posted by plexer View Post
    Dovestones tools here as well excellent for the price.

    Ben
    That looks more like it! Seems to be able to create home folders as well.

    Which tools do you use out of the bundle?

  9. #24

    plexer's Avatar
    Join Date
    Dec 2005
    Location
    Norfolk
    Posts
    12,966
    Thank Post
    587
    Thanked 1,495 Times in 1,341 Posts
    Rep Power
    398
    Mainly the user creation one tbh but's it's so easy to use plus their support is great for any queries.

    Ben

  10. #25
    TheLibrarian
    Guest
    Personally I would not trade XIA Automation for the Dovestones tools (based on a quick perusal of the Dovestones tools). XIA Automation is not as cheap (it's ~250 IIRC) but it's potential for automating so much more is immense.

  11. #26
    jsnetman's Avatar
    Join Date
    Oct 2007
    Posts
    887
    Thank Post
    23
    Thanked 134 Times in 126 Posts
    Rep Power
    39
    You should not need to create users folders, if you specify their user home folder when creating a user it should do it automatically if your permissions are set right. DSADD as mentioned or a utility from MS called addusers.exe will do the job easily and at no cost.

  12. #27
    Galway's Avatar
    Join Date
    Jun 2007
    Location
    West Yorkshire
    Posts
    1,015
    Thank Post
    6
    Thanked 215 Times in 153 Posts
    Rep Power
    61
    Quote Originally Posted by zag View Post
    That actually looks pretty good. Worked well on my test CSV files.

    But how do you create the user home drives?
    Once all the users are in AD, select all the users and in the home folders section input the foldershare\%username% and it creates them all for me with the permissions.

  13. Thanks to Galway from:

    AWicher (16th July 2010)

  14. #28
    maark's Avatar
    Join Date
    Feb 2006
    Location
    leicester
    Posts
    459
    Thank Post
    86
    Thanked 72 Times in 64 Posts
    Rep Power
    37
    +1 for dovestones here

  15. #29
    box_l's Avatar
    Join Date
    May 2007
    Location
    Herefordshire
    Posts
    403
    Thank Post
    63
    Thanked 84 Times in 69 Posts
    Rep Power
    60
    we use xia automation in all of our 65 schools. excellent support too.

    BoX

    edit: Ooops, didn't realise I'd already replied in this thread.
    Last edited by box_l; 12th July 2010 at 08:27 PM.

  16. #30
    BrianG's Avatar
    Join Date
    May 2009
    Location
    Yorkshire
    Posts
    163
    Thank Post
    64
    Thanked 25 Times in 18 Posts
    Blog Entries
    4
    Rep Power
    20
    I use ad-infinitum to create bulk users, such as in the new year or when setting up a new server. It's a great bit of software.

SHARE:
+ Post New Thread
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Creating AD users in a web front end
    By HMCTech in forum Windows
    Replies: 7
    Last Post: 18th May 2010, 09:19 AM
  2. Creating Home Folder.. and getting it to map for users
    By dgrams in forum How do you do....it?
    Replies: 16
    Last Post: 26th February 2010, 05:15 PM
  3. Active Directory-Script for Creating Bulk Users
    By calapso in forum How do you do....it?
    Replies: 8
    Last Post: 14th January 2009, 06:32 PM
  4. Replies: 1
    Last Post: 6th October 2008, 10:13 AM
  5. Replies: 25
    Last Post: 23rd November 2007, 08:24 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
  •