Jump to content

Recommended Posts

Posted

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

Posted

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...