Submitted By: Steve Bossen

Lists all Active Directory FSMO role holders.

Visual Basic
Edit|Remove
rem ntds.bat - used to list active directory fsmo role holders
rem steve bossen - macro 4
rem jan 31, 2005
rem must specify server name on command line
rem ex: ntds server01

ntdsutil "domain management" connections "connect to server %1" quit "select operation target" 
"list roles for connected server" > ntds.txt quit quit quit

notepad ntds.txt