HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

Get-Acl — Get the security descriptor for a resource, such as a file or registry key. Note: This command can o

Submitted by: @import:tldr-pages··
0
Viewed 0 times
thecommandsecurityclidescriptorget-aclforget
windows

Problem

How to use the Get-Acl command: Get the security descriptor for a resource, such as a file or registry key. Note: This command can only be used through PowerShell. More information: <https://learn.microsoft.com/powershell/module/microsoft.powershell.security/get-acl>.

Solution

Get-Acl — Get the security descriptor for a resource, such as a file or registry key. Note: This command can only be used through PowerShell. More information: <https://learn.microsoft.com/powershell/module/microsoft.powershell.security/get-acl>.

Display the ACL for a specific directory:
Get-Acl {{path\to\directory}}


Get an ACL for a registry key:
Get-Acl -Path {{HKLM:\System\CurrentControlSet\Control}} | Format-List

Code Snippets

Display the ACL for a specific directory

Get-Acl {{path\to\directory}}

Get an ACL for a registry key

Get-Acl -Path {{HKLM:\System\CurrentControlSet\Control}} | Format-List

Context

tldr-pages: windows/Get-Acl

Revisions (0)

No revisions yet.