Skip to content

Instantly share code, notes, and snippets.

@robv8r
Created February 15, 2019 21:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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