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 ...
28th September 2011, 04:06 PM #1
- Rep Power
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,
28th September 2011, 04:09 PM #2
do you mean you have for example a folder with:
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
28th September 2011, 05:11 PM #3
Wisesoft do a great piece of software for exactly this, its called ntfsfix
Thanks to strawberry from:
dave.81 (24th October 2011)
By thedarxide in forum Windows Server 2008
Last Post: 30th March 2010, 09:09 AM
By LorenzosEar in forum Wireless Networks
Last Post: 9th July 2009, 04:21 PM
By baronne in forum Scripts
Last Post: 20th August 2007, 02:20 PM
By Frazer in forum Scripts
Last Post: 20th June 2006, 03:53 PM
By tosca925 in forum Scripts
Last Post: 21st November 2005, 09:49 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)