> For the complete documentation index, see [llms.txt](https://infra.newerasec.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://infra.newerasec.com/infrastructure-testing/privilege-esclation/situational-awareness/windows/fsmo-roles.md).

# FSMO Roles

## &#x20;The roles&#x20;

**Forest Wide Roles:**&#x20;

Schema Master&#x20;

Domain naming master&#x20;

**Domain Wide Roles:**&#x20;

PDC&#x20;

RID pool manager&#x20;

Infrastructure Master&#x20;

## How to Quickly check FSMO roles

**CMD:**&#x20;

`netdom query fsmo`&#x20;

**Powershell**&#x20;

`Get-ADForest yourdomain | Format-Table SchemaMaster,DomainNamingMaster`&#x20;

`Get-ADDomain yourdomain | format-table` &#x20;
