Skip to content

Instantly share code, notes, and snippets.

@robv8r
Created February 15, 2019 21:13
Show Gist options
  • Save robv8r/aa5fd5fd20f954b720e2e844efc5bcf1 to your computer and use it in GitHub Desktop.
Save robv8r/aa5fd5fd20f954b720e2e844efc5bcf1 to your computer and use it in GitHub Desktop.
$source = 'C:\Program Files'
$target = 'D:\Program Files'
mkdir $target
( Get-Item $source ).GetAccessControl('Access') | Set-Acl $target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment