1.

Solve : batch script to set premissions?

Answer»

hello!

is there a COMMAND fo setting premissions for a folder and all subfolders in that folder.

have had a little look on cacls command but it does not make any sense to me how to use it.

any tip is helpfull

//reduse icacls instead

Examples:

icacls c:\WINDOWS\* /save AclFile /T
- Will save the ACLs for all files under c:\windows
and its subdirectories to AclFile.

icacls c:\windows\ /restore AclFile
- Will restore the Acls for every file within
AclFile that exists in c:\windows and its subdirectorie

icacls file /grant Administrator:(D,WDAC)
- Will grant the user Administrator Delete and WRITE DAC
permissions to file

icacls file /grant *S-1-1-0:(D,WDAC)
- Will grant the user defined by SID S-1-1-0 Delete and
Write DAC permissions to file


taken from icacls /?



Discussion

No Comment Found