List Fsmo Roles
list_fsmo_rolesReports the owner of each Active Directory FSMO role to audit role placement and identify which domain controller holds schema, naming, PDC, RID, and infrastructure masters.
Instructions
Report the owner of each of the five FSMO roles (audit).
Returns one entry per role (schema_master, domain_naming_master,
pdc_emulator, rid_master, infrastructure_master) with the container
queried and the owning DSA DN (owner). The schema and domain-naming
masters live in the Configuration naming context, derived from the domain
base for a single-domain forest; pass config_base explicitly for a
multi-domain forest. Containers the service account cannot read are skipped.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | No | ||
| config_base | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |