Set rights using command line / icacls.exe

Posted on 2011-04-27
Last Modified: 2012-05-11

icacls.exe c:\test1\$i /grant domain/usera:F

It only set the rights "on this folder"

How do I set "On all folders, subfolders and files"?

Question by:mikeydk
    LVL 14

    Expert Comment

    The bellow folders should inherit the permission if this is enabled, by the sounds of it inheritence is disabled.  To enable it you can use the /inheritanced:e
    LVL 9

    Expert Comment

    LVL 67

    Assisted Solution

    Fairly certain all you need is a /T at the end to process all files/folders beneath.

    icacls.exe c:\test1\$i /grant domain/usera:F /T
    LVL 19

    Accepted Solution

    Better: use the icacls Object Inherit and Container Inheit tags.

    icacls c:\test1\$i /grant domain/usera:(OI)(CI)(F)

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Join & Write a Comment

    Redirected folders in a windows domain can be quite useful for a number of reasons, one of them being that with redirected application data, you can give users more seamless experience when logging into different workstations.  For example, if a use…
    Background Still having to process all these year-end "csv" files received from all these sources (including Government entities), sometimes we have the need to examine the contents due to data error, etc... As a "Unix" shop, our only readily …
    This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.
    This Micro Tutorial will give you a introduction in two parts how to utilize Windows Live Movie Maker to its maximum editing capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.

    755 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

    20 Experts available now in Live!

    Get 1:1 Help Now