Skip to content

How to check FSMO roles in Active Directory

Once you Install Active Directory Domain Services, the FSMO (Flexible Single Master Operations) roles are installed on that Windows Server. If you have more than one Domain Controller or more than one domain in the forest, you like to know which DC holds which FSMO role. In this article, you will learn how to check FSMO roles in Active Directory.

How many FSMO roles?

There are five FSMO roles:

  1. Schema master (one per forest)
  2. Domain naming master (one per forest)
  3. RID master (one per domain)
  4. PDC emulator (one per domain)
  5. Infrastructure master (one per domain)

Let’s look at how to find FSMO roles in Active Directory with different methods.

Check FSMO roles with Command Prompt

Get the FSMO roles with the command netdom query FSMO.

You can run the command in Command Prompt or PowerShell to find the FSMO roles in Active Directory.

PS C:\> netdom query FSMO

Schema master               DC01-2019.exoip.local
Domain naming master        DC01-2019.exoip.local
PDC                         DC01-2019.exoip.local
RID pool manager            DC01-2019.exoip.local
Infrastructure master       DC01-2019.exoip.local
The command completed successfully.

Check FSMO roles with PowerShell

You can find the FSMO roles with PowerShell cmdlets. There are two cmdlets that you need to run.

  1. Run the Get-ADForest cmdlet to get the Schema master and Domain naming master roles.
PS C:\> Get-ADForest | fl SchemaMaster,DomainNamingMaster


SchemaMaster       : DC01-2019.exoip.local
DomainNamingMaster : DC01-2019.exoip.local
  1. Run the Get-ADDomain cmdlet to get the RID master, PDC emulator, and Infrastructure master roles.
PS C:\> Get-ADDomain | fl RIDMaster,PDCEmulator,InfrastructureMaster


RIDMaster            : DC01-2019.exoip.local
PDCEmulator          : DC01-2019.exoip.local
InfrastructureMaster : DC01-2019.exoip.local

If you want to have all the FSMO roles in a single output, use the below script.

$forestInfo = Get-ADForest | Select-Object SchemaMaster, DomainNamingMaster
$domainInfo = Get-ADDomain | Select-Object RIDMaster, PDCEmulator, InfrastructureMaster

$AllFSMO = [PSCustomObject]@{
    SchemaMaster = $forestInfo.SchemaMaster
    DomainNamingMaster = $forestInfo.DomainNamingMaster
    RIDMaster = $domainInfo.RIDMaster
    PDCEmulator = $domainInfo.PDCEmulator
    InfrastructureMaster = $domainInfo.InfrastructureMaster
}

$AllFSMO | Format-List

Get FSMO roles with PowerShell script

An excellent way to get the FSMO roles is to run the Get-ADInfo.ps1 PowerShell script.

C:\scripts\.\Get-ADInfo.ps1

This will show the FSMO roles and more information about your Active Directory.

Active Directory Info

Computers  = 5
Workstions = 1
Servers    = 4
Users      = 74
Groups     = 88

Active Directory Forest Name =  exoip.local
Active Directory Forest Mode =  Windows2016Forest
Active Directory Domain Mode =  Windows2016Domain
Active Directory Schema Version is 88 which corresponds to Windows Server 2019/Windows Server 2022

FSMO Role Owners
Schema Master         =  DC01-2019.exoip.local
Domain Naming Master  =  DC01-2019.exoip.local
RID Master            =  DC01-2019.exoip.local
PDC Emulator          =  DC01-2019.exoip.local
Infrastructure Master =  DC01-2019.exoip.local

Check FSMO roles with GUI

To check the FSMO roles with GUI, follow the below steps:

  1. Start Command Prompt as administrator.
  2. Type the command regsvr32 schmmgmt.dll and press Enter.
  3. A message appears that DllRegisterServer in schmmgmt.dll succeeded. Press OK.

Note: You must register the Active Directory schema MMC snap-in to make it available in the MMC snap-in list.

Check FSMO roles in Active Directory schmmgmt.dll
  1. Click the start button, search for Run, and click on it.
Start run desktop app
  1. Type in mmc.exe and click OK.
Open mmc.exe
  1. Click File and select Add/Remove Snap-in.
Add/Remove Snap-in
  1. Click on Active Directory Schema, select Add, and click OK.
Check FSMO roles in Active Directory add Active Directory Schema snap-in
  1. Click on Active Directory Schema to load the configuration.
  2. Right-click Active Directory Schema and click on Operations Master.
Check FSMO roles in Active Directory Schema operations master
  1. The Domain Controller that holds the Schema master role will appear.
Check FSMO roles in Active Directory schema master
  1. Start Active Directory Domains and Trusts.
  2. Right-click on Active Directory Domains and Trusts and click on Operations Master.
Check FSMO roles in Active Directory Domains and Trusts operations master
  1. The Domain Controller that holds the Domain naming master role will appear.
Check FSMO roles in Active Directory domain naming master
  1. Start Active Directory Users and Computers.
  2. Right-click on the domain and click on Operations Master.
Check FSMO roles in Active Directory Users and Computers operations master
  1. Select each tab to see which Domain Controller holds the FSMO roles:
  • RID master
  • PDC emulator
  • Infrastructure master
Check FSMO roles in Active Directory RID/PDC/Infrastructure

That’s it!

Read the below articles on how to install and configure two Domain Controllers in your organization:

Conclusion

You learned how to check FSMO roles in Active Directory. Use the PowerShell or the GUI method to find which Domain Controller holds which FSMO role in Active Directory.

Did you enjoy this article? You may also like Add UPN suffix in Active Directory. Don’t forget to follow us and share this article.

ALI TAJRAN

ALI TAJRAN

ALI TAJRAN is a passionate IT Architect, IT Consultant, and Microsoft Certified Trainer. He started Information Technology at a very young age, and his goal is to teach and inspire others. Read more »

This Post Has 0 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *