Search This Blog

Thursday, April 15, 2010

ICACLS : command line to configure ACL for files and folders.


ICACLS can be used to configure the ACL of files and folders via command line.
The GUI interface is easier to configure for a few folders, but if you are dealing with hundreds of folders. It will be take a long time to finish.

"ICACLS /?" for a full list of parameters.

I have used ICACLS to do the following:
1. Stop inheriting permissions, and keep the current inherited permission.
>ICACLS /inheritance:d

2. Remove "Authenticated Users" from the ACL
>ICACLS /remove "authenticated users"

3. Grant Read, Write and Execute rights for UserA
>ICACLS /grant myorigin\UserA:(RX,W)

No comments:

Post a Comment