originacl Verified current stable Not installed? Filesystem

Originacl / Copy Security Descriptor Between Files

Copy Security Descriptor Between Files

Originacl command syntax to copy security descriptor between files. Copyable examples, output expectations, and common mistakes.

$
Terminal
$OriginAcl = Get-Acl -Path <path\to\file>; Set-Acl -Path <path\to\file> -AclObject $OriginAcl

Command Breakdown

What each part is doing

$OriginAcl
Base Command
The executable that performs this operation. Here it runs Originacl before the shell applies any redirect operators.
<path\to\file>
Input Files
The file path or paths supplied to this command.
-Path
Command Option
Tool-specific option used by this command invocation.
-AclObject
Command Option
Tool-specific option used by this command invocation.

Alternative Approaches

Comparable commands in other tools

Alternative filesystem tools for the same job.