• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 312
  • Last Modified:

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.

Thanks,

Mark
0
MarkAtMarios
Asked:
MarkAtMarios
  • 2
1 Solution
 
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) http://www.ss64.com/nt/robocopy.html
0
 
Jeremy WeisingerSenior Network Consultant / EngineerCommented:
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now