Batch modifying permissions on user folders

Posted on 2007-09-28
Last Modified: 2010-04-18
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.


Question by:MarkAtMarios
    LVL 18

    Accepted Solution

    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)
    LVL 18

    Expert Comment

    by:Jeremy Weisinger

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Setting up a Microsoft WSUS update system is free relatively speaking if you have hard disk space and processor capacity.   However, WSUS can be a blessing and a curse. For example, there is nothing worse than approving updates and they just have…
    Learn about cloud computing and its benefits for small business owners.
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now