Files
tldr/pages.zh/windows/get-acl.md

13 lines
410 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 获取 ACL
> 获取资源的安全描述符,例如文件或注册表项。
> 注意:此命令只能通过 PowerShell 使用。
> 更多信息:<https://learn.microsoft.com/powershell/module/microsoft.powershell.security/get-acl>。
- 显示特定目录的 ACL
`Get-Acl {{path\to\directory}}`
- 获取注册表项的 ACL
`Get-Acl -Path {{HKLM:\System\CurrentControlSet\Control}} | Format-List`