Syntax: -
icacls <FileName> [/grant[:r]
<Sid>:<Perm>[...]] [/deny <Sid>:<Perm>[...]]
[/remove[:g|:d]] <Sid>[...]] [/t] [/c] [/l] [/q] [/setintegritylevel
<Level>:<Policy>[...]]
icacls <Directory> [/substitute <SidOld>
<SidNew> [...]] [/restore <ACLfile> [/c] [/l] [/q]]
Parameter: -
Example: -
1. Full Control
icacls C:\test\subtest /grant Domain\user1:(OI)(CI)F
2. Special permission
icacls C:\test\subtest /grant Domain\user1:(OI)(CI)(M,DC)
No comments:
Post a Comment