Batch modifying permissions on user folders

I am moving personal folders from one server to another.  I would like to be able to run a batch file that will add each user to their own user folder's permissions.  I can see how using cacls would do that for each folder but would take a lot to do each one.

What I would like is a batch file that would get the folder name (same as logon name) and assign the user for that folder modify rights.  I have over 100 users so running a script would make me much happier.


Who is Participating?
Jeremy WeisingerSenior Network Consultant / EngineerCommented:
If the original folders already have the proper permissions then you can just copy it over preserving those permissions using a utility like Robocopy (part of the Windows resource kit)
Jeremy WeisingerSenior Network Consultant / EngineerCommented:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.