> For the complete documentation index, see [llms.txt](https://notes.nomanaziz.me/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://notes.nomanaziz.me/cybersecurity/penetration-testing/tryhackme/main-methodology/3.-gaining-access-exploitation/windows-applications/windows-active-directory/kerberos/enumerating-spn-accounts-with-powershell.md).

# Enumerating SPN Accounts with Powershell

### Enumerating SPN Accounts with Powershell

***

```powershell
setspn -T medin -Q ​ */*
```

we can extract all accounts in the SPN (Service Principal Name).

***
