How to Copy ACL Permissions For Folders, Using Powershell

less than 1 minute read | Suggest an edit | Issue? Question?


Buy Me A Coffee

Did this article help you?

I'd be grateful if you'd be willing to buy me a coffee.


Problem:

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

Solution

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!


Buy Me A Coffee

Did this article help you?

I'd be grateful if you'd be willing to buy me a coffee.


Updated:

Leave a comment