How to copy folder ACL (security) permission using Powershell?

Problem: Need to copy ACL permissions from one folder to another using Powershell

How to copy folder ACL (security) permission using Powershell?

Combination of Get-Acl and Set-Acl commands are thos you should use:

To copy permissions from FolderA to FolderB use below script:

get-acl C:\FolderA | set-acl C:\FolderB

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.