set_privilege.bat
· 231 B · Batchfile
Raw
icacls "C:\folder" /grant user:(OI)(CI)M /T
REM (OI) = Object Inherit → Applies on files inside folders
REM (CI) = Container Inherit → Applies on FUTURE subfolders
REM M = Modify
REM /T = Applies on EXISTING subfolders
| 1 | icacls "C:\folder" /grant user:(OI)(CI)M /T |
| 2 | |
| 3 | REM (OI) = Object Inherit → Applies on files inside folders |
| 4 | REM (CI) = Container Inherit → Applies on FUTURE subfolders |
| 5 | REM M = Modify |
| 6 | REM /T = Applies on EXISTING subfolders |