Today I had to copy the permissions from one folder to another folder. Instead of doing this manually, I tried to do it with Powershell.
And I succeeded...
Here are my experiences with it....
Obtaining the ACL for files and folders:
get-acl <folder> | fl
![](https://it-infrastructure.solutions/content/images/2020/03/image-3.png)
Copy file and folder permissions:
get-acl <sourcefolder> | Set-Acl <targetfolder>
![](https://it-infrastructure.solutions/content/images/2020/03/image-4.png)