Thursday, 26 March 2020

Public Stack Overflow Tags Users Jobs Teams What’s this? Free 30 Day Trial Change owner and permissions on folder

CACLS is deprecated, you can achieve what you want with the recommended ICACLS. You want something like:
icacls.exe d:\test /grant domain\username:F
To make an addition to permissions and:
icacls.exe d:\test /setowner domain\username
To set ownership. Other options of interest from icacls /?:
/T indicates that this operation is performed on all matching
    files/directories below the directories specified in the name.

/C indicates that this operation will continue on all file errors.
    Error messages will still be displayed.

No comments:

Post a Comment

Note: only a member of this blog may post a comment.