Skip to content

Instantly share code, notes, and snippets.

@Ambratolm
Last active July 12, 2022 02:08
Show Gist options
  • Save Ambratolm/edfaebe7f97ff9a0cfed5f836fb3eddb to your computer and use it in GitHub Desktop.
Save Ambratolm/edfaebe7f97ff9a0cfed5f836fb3eddb to your computer and use it in GitHub Desktop.
Copy security permissions (access control lists or ACL) from a file or folder to another.
# Open PowerShell with Admin rights
Get-Acl -Path 'C:\Some\Path' | Set-Acl -Path 'C:\Some\Other\Path'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment