+ Post New Thread
Results 1 to 3 of 3
General Chat Thread, Script to add users to home directories in General; I have a client who has the permissions on their users' home directories all jacked up, and they want to ...
  1. #1

    Join Date
    Sep 2011
    Posts
    1
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Question Script to add users to home directories

    I have a client who has the permissions on their users' home directories all jacked up, and they want to move the home directories to another server. I have created folders on the new server and set the permissions on the parent folder to Authenticated Users, Domain Admins and System; all Full Control and have robocopy-ed the folders over. Now I need to add the user account to each folder. Is there a way to do that without going into each folder manually?

    Thanks for any help,
    Anthony

  2. #2

    MK-2's Avatar
    Join Date
    Oct 2006
    Location
    Nottingham
    Posts
    3,237
    Thank Post
    149
    Thanked 581 Times in 307 Posts
    Blog Entries
    8
    Rep Power
    200
    do you mean you have for example a folder with:

    ahall
    atest1
    fjones
    tburden2

    and you want ahall to have access to ahall folder, atest1 to have access to atest1 folder etc?
    If so, (sorry for being vague, the script i had was ages ago), find the command that will do that manually (usually cacls) and then do a bat file that will run through a list of names and add them to the folders. so it will read name 1 and do cacls for folder 1, read name 2 and do that for folder 2.

    i'm really sorry for being vague on it, it was abou 8 years ago i had the bat file, but i do remember it was a FOR statement in it that ran through each line of a text file containing the names of the users.....name1 being the first folders, name2 being the second

  3. #3

    Join Date
    Mar 2007
    Posts
    1,768
    Thank Post
    79
    Thanked 290 Times in 221 Posts
    Rep Power
    86
    Wisesoft do a great piece of software for exactly this, its called ntfsfix

  4. Thanks to strawberry from:

    dave.81 (24th October 2011)

SHARE:
+ Post New Thread

Similar Threads

  1. Creating IIS sites for all domain users using home directories
    By thedarxide in forum Windows Server 2008
    Replies: 10
    Last Post: 30th March 2010, 09:09 AM
  2. Moving Users Home Directories to a file server - RM
    By LorenzosEar in forum Wireless Networks
    Replies: 0
    Last Post: 9th July 2009, 04:21 PM
  3. Replies: 0
    Last Post: 20th August 2007, 02:20 PM
  4. Replies: 19
    Last Post: 20th June 2006, 03:53 PM
  5. Replies: 12
    Last Post: 21st November 2005, 09:49 PM

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
  •