none
help to modify this script RRS feed

  • Question

  • Hi .. I need your help to modify this script according to my requirement if that is technically possible.

    Here is the structure

    \\Server\Parent\UserA\unix

    \\Server\Parent\UserB\unix

    \\Server\Parent\UserC\unix.... and so on..

    Under each of User$ folder there is a folder named "unix".

    I want to add a user or group with full permissions on all the User$ folders listed under "Parent" folder (names taken as of above structure) but want to exclude permissions only on "unix" folder.

    I have used "icacls" which works fine for me in perspective of applicability of required permissions but I cannot add exclude function in this.

    icacls "\\\\Server\Parent\UserA" /grant Domain\Group:(OI)(CI)F /T

    Will you be able to guide in this scenario?
    • Split by jrv Tuesday, September 18, 2018 6:01 PM New question
    • Moved by Bill_Stewart Thursday, December 13, 2018 3:17 PM This is not "scripts on demand"
    Tuesday, September 18, 2018 2:04 PM