# 【AD】【列舉】Get-Acl

我們將使用PowerShell的Get-Acl cmdlet。這個命令本質上將檢索我們使用 -Path 標誌定義的對象的權限並將它們打印在我們的PowerShell提示中。

```Powershell
PS C:\Tools> Get-Acl -Path HKLM:SYSTEM\CurrentControlSet\Services\LanmanServer\DefaultSecurity\ | fl
```

[![image-1702296466763.png](https://bookstack.treemanou.com/uploads/images/gallery/2023-12/scaled-1680-/Jk8TtTpWlIu7NpOZ-image-1702296466763.png)](https://bookstack.treemanou.com/uploads/images/gallery/2023-12/Jk8TtTpWlIu7NpOZ-image-1702296466763.png)

在清單中突出顯示的輸出顯示了擁有<span style="background-color: #ffff00;">FullControl或ReadKey</span>權限的組和用戶，這意味著它們都可以<span style="background-color: #ffff00;">讀取SrvsvcSessionInfo密鑰本身</span>。