Forrest logo
back to context overview

set-acl

List of commands for set-acl:

  • set-acl:tldr:5ebca set-acl: Copy a security descriptor from one file to another.
    $ $OriginAcl = Get-Acl -Path ${path\to\file}; Set-Acl -Path ${path\to\file} -AclObject $OriginAcl
    try on your machine
    explain this command
  • set-acl:tldr:b132e set-acl: Use the pipeline operator to pass a descriptor.
    $ Get-Acl -Path ${path\to\file} | Set-Acl -Path ${path\to\file}
    try on your machine
    explain this command
back to context overview