I am looking for a utility to which I can specify a directory to be recursively scanned. The utility should generate a batch file consisting of calls to icacls
to reproduce the file and directory permissions under the specified path.
The icacls /save
command is not suitable for this task particularly because it duplicates inherited permissions unnecessarily and it outputs SIDs instead of friendly account names.
If I understand you correctly, you want to apply the perms of a directory to it's children? you can use powershell scripts for this. You can recursively scan directorys, and for each directory you can act on it, for example
will recurse all directories in my desktop and output the permissions to the console and also to a file called C:\acls.list. You can also change ownership info, apply perms recursively, and pretty much whatever icalcs would do using
get-acl
andset-acl