mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-17 17:00:51 +00:00
Move pages under tldr, lint run.sh, update docs
This commit is contained in:
18
tldr/windows/set-acl
Normal file
18
tldr/windows/set-acl
Normal file
@@ -0,0 +1,18 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, windows]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# Set-Acl
|
||||
|
||||
> Changes the security descriptor of a specified item, such as a file or a registry key.
|
||||
> This command can only be used through PowerShell.
|
||||
> More information: <https://learn.microsoft.com/powershell/module/microsoft.powershell.security/set-acl>.
|
||||
|
||||
- Copy a security descriptor from one file to another:
|
||||
|
||||
`$OriginAcl = Get-Acl -Path {{path oile}}; Set-Acl -Path {{path oile}} -AclObject $OriginAcl`
|
||||
|
||||
- Use the pipeline operator to pass a descriptor:
|
||||
|
||||
`Get-Acl -Path {{path oile}} | Set-Acl -Path {{path oile}}`
|
||||
Reference in New Issue
Block a user