Windows maintain explicit ACL of sub folder when copying
We use a master project folder when creating new projects, one of the sub-folders has explicit access restrictions that are different to the containing folder.
That ACL is lost when you copy and paste the master folder into a new project. We don't want it to inherit any part of the ACL from the new project folder.
How do we maintain the Explicit ACL for that folder and it's sub-folders/files using file explorer. Is there a way to protect the explicit ACL across a copy paste.
Is there a way to do this via a script within the copied directory that would upon being double-clicked restore the ACL to the sub-directory?
I can run a powershell command to do it or an icacls command but can't see a way to do this via gui without getting all long winded about it.
Maybe I could just run a powershell script periodically, which searches for new folders under a particular directory and queries if there are any new ones matching the project folder and applying a set of ACL's to the subsequent new sub folders.
5 Reset to default