1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-03 18:55:34 +02:00
tldr/pages/windows/get-acl.md
Lena c9775847b6
pages/*: use the imperative in descriptions (#12574)
* pages/*: use the imperative in descriptions

* go-fmt: put the description on one line
2024-04-18 09:34:00 +05:30

434 B

Get-Acl

Get the security descriptor for a resource, such as a file or registry key. 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