mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-17 12:00:43 +00:00
Move pages under tldr, lint run.sh, update docs
This commit is contained in:
18
tldr/windows/get-acl
Normal file
18
tldr/windows/get-acl
Normal file
@@ -0,0 +1,18 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, windows]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# Get-Acl
|
||||
|
||||
> Gets 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 o\directory}}`
|
||||
|
||||
- Get an ACL for a registry key:
|
||||
|
||||
`Get-Acl -Path {{HKLM:\System\CurrentControlSet\Control}} | Format-List`
|
||||
Reference in New Issue
Block a user