July 14, 2008: FSMO roles command.
Quick and dirty. You want to know which domain controllers hold the FSMO roles in your Active Directory domain? Hate navigating through all the dialog boxes in the MMC tools and find NTDSUTIL navigation a pain?
On your DC, drop to a cmd session and run this - all as one line:
Ntdsutil Roles Connections “Connect to server %COMPUTERNAME%” Quit “Select Operation Target” “List roles for connected server” Quit Quit Quit
It will list the roles lickety-split, and you’re done!