AD – Get FSMO roles

Problem
You need to determine the FSMO roles quickly

Solution

Long way:

  • Open Ntdsutil as an administrator: Click Start, and then, in Start Search, type ntdsutil. At the top of the Start menu, right-click ntdsutil, and then click Run as administrator. In the User Account Control dialog box, provide Domain Admins credentials, and then click OK.
  • At the ntdsutil: prompt, type roles, and then press ENTER.
  • At the fsmo maintenance: prompt, type connections, and then press ENTER.
  • At the server connections: prompt, type connect to server <servername>, where¬†servername¬†is the name of the domain controller that belongs to the domain that contains the operations masters.
  • After you receive confirmation of the connection, type quit, and then press ENTER to exit this menu.
  • At the fsmo maintenance: prompt, type select operation target, and then press ENTER.
  • At the select operations target: prompt, type list roles for connected server, and then press ENTER.
  • The system responds with a list of the current roles and the Lightweight Directory Access Protocol (LDAP) name of the domain controllers that are currently assigned to host each role.
  • Type quit, and then press ENTER to exit each prompt in Ntdsutil.exe.
  • At the ntdsutil: prompt, type quit, and then press ENTER to close the window.

Short way
In a command window type: netdom /query fsmo

Tested Platform
Windows 2008R2

Reference
https://technet.microsoft.com/en-us/library/cc816893%28v=ws.10%29.aspx?f=255&MSPPError=-2147217396

Leave a Reply