Find FSMO roles using command

How to find the roles running on a dc quickly,solution is dump the roles to  file or just check using command dmpfsmos.

C:\resourcekit>dumpfsmos mog-in-s01

ntdsutil: roles

fsmo maintenance: Connections

server connections: Connect to server mog-in-s01

Binding to mog-in-s01 …
Connected to mog-in-s01 using credentials of locally logged on user.

server connections: Quit

fsmo maintenance: select Operation Target

select operation target: List roles for connected server

Server “mog-in-s01” knows about 5 roles
Schema – CN=NTDS Settings,CN=MOG-IN-S01,CN=Servers,CN=Default-First-Site-Name,CN=Site
s,CN=Configuration,DC=mogin,DC=com
Domain – CN=NTDS Settings,CN=MOG-IN-S01,CN=Servers,CN=Default-First-Site-Name,CN=Site
s,CN=Configuration,DC=mogin,DC=com
PDC – CN=NTDS Settings,CN=MOG-IN-S01,CN=Servers,CN=Default-First-Site-Name,CN=Sites,C
N=Configuration,DC=mogin,DC=com
RID – CN=NTDS Settings,CN=MOG-IN-S01,CN=Servers,CN=Default-First-Site-Name,CN=Sites,C
N=Configuration,DC=mogin,DC=com
Infrastructure – CN=NTDS Settings,CN=MOG-IN-S01,CN=Servers,CN=Default-First-Site-Name
,CN=Sites,CN=Configuration,DC=mogin,DC=com

select operation target: Quit

fsmo maintenance: Quit

ntdsutil: Quit
Disconnecting from mog-in-s01…

Other methods
DCdiag /mogin:Knowsofroleholders /v

It is possible to find the roles from management console,but need to check each snap-in

Determine the RID, PDC, and Infrastructure FSMO Holders using dsa.msc
______________________________________________________________________

1. Start, click Run, type dsa.msc, and then click OK.
2. Right-click the selected Domain Object in the top left pane, and then click Operations Masters.
3. Click the PDC tab to view the server holding the PDC master role.
4. Click the Infrastructure tab to view the server holding the Infrastructure master role.
5. Click the RID Pool tab to view the server holding the RID master role.

How to Determine the Schema FSMO Holder in a Forest
____________________________________________________

1. Click Start, click Run, type mmc, and then click OK.
2. On the Console menu, click Add/Remove Snap-in, click Add, double-click Active Directory Schema, click Close, and then click OK.
3. Right-click Active Directory Schema in the top left pane, and then click Operations Masters to view the server holding the schema master role.

If the Schema snap-in not available, register the Schmmgmt.dll file.
type regsvr32 schmmgmt.dll in a run window

How to Determine the Domain Naming FSMO Holder in a Forest
__________________________________________________________

1. Click Start, click Run, type mmc, and then click OK.
2. On the Console menu, click Add/Remove Snap-in, click Add, double-click Active Directory Domains and Trusts, click Close, and then click OK.
3. In the left pane, click Active Directory Domains and Trusts.
4. Right-click Active Directory Domains and Trust, and then click Operations Master to view the server holding the domain naming master role in the Forest.

Advertisements

Posted on April 12, 2011, in Uncategorized, Windows. Bookmark the permalink. Leave a comment.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: