Sean Killeen bio photo

Sean Killeen

Just a guy trying to get better at writing bios.

Email Twitter Facebook Google+ LinkedIn Instagram Github Stackoverflow Foursquare
Edit this page | Issue? Question?


I needed the permissions on folder B to be exactly what they were on folder A.


Powershell’s Get-Acl and Set-Acl commands can be conveniently piped together.

So to copy permissions from C:\Folder1 to C:\Folder2, the following one-liner would do the trick:

Get-Acl -Path C:\Folder1 | Set-Acl -Path C:\Folder2

Happy scripting!