I just noticed some strange behavior using ROBOCOPY /SEC that I can't explain...
We require a {TEMPLATE} folder holding +50 subfolders with custom access rights to be copied for each new project. For this I have created a simple batch script that executes:
ROBOCOPY "\\SHARE\INFO\{TEMPLATE-NL}" "\\SHARE\PROJECTS\NEW_PROJECT" /E /SEC
The share itself has full access for everyone. The user executing the batch script has full access on \SHARE\PROJECTS
When this user has read access (including read permissions) to \SHARE\INFO{TEMPLATE-NL}, ROBOCOPY will fail and only copy the first level of folders holding specific access rights.
To fix this, I had to give this user full access to \SHARE\INFO{TEMPLATE-NL}
How comes? And is there any way around this? I do not want this user to be able to change the template permissions.