You are currently offline, waiting for your internet to reconnect

Using Repadmin.exe to troubleshoot Active Directory replication

Support for Windows Server 2003 ended on July 14, 2015

Microsoft ended support for Windows Server 2003 on July 14, 2015. This change has affected your software updates and security options. Learn what this means for you and how to stay protected.

This article was previously published under Q229896
SUMMARY
Repadmin.exe is a Microsoft Windows 2000 Resource Kit tool that is available in the Support Tools folder on the Windows 2000 CD-ROM. It is a command-line interface to Active Directory replication. This tool provides a powerful interface into the inner workings of Active Directory replication, and is useful for troubleshooting Active Directory replication problems. This article describes the basic use of the Repadmin.exe tool.
MORE INFORMATION
Typing repadmin at a command prompt displays the following list of switches:
Usage: repadmin <cmd> <args> [/u:{domain\\user}] [/pw:{password|*}]Supported <cmd>s & args:     /sync <Naming Context> <Dest DSA> <Source DSA UUID> [/force] [/async            [/full] [/addref] [/allsources]     /syncall <Dest DSA> [<Naming Context>] [<flags>]     /kcc [DSA] [/async]     /bind [DSA]     /propcheck <Naming Context> <Originating DSA Invocation ID>         <Originating USN> [DSA from which to enumerate host DSAs]     /getchanges NamingContext [SourceDSA] [/cookie:<file>]     /getchanges NamingContext [DestDSA] SourceDSAObjectGuid          [/verbose] [/statistics]     /showreps [Naming Context] [DSA [Source DSA objectGuid]] [/verbose]         [/unreplicated] [/nocache]     /showvector <Naming Context> [DSA] [/nocache]     /showmeta <Object DN> [DSA] [/nocache]     /showtime <DS time value>     /showmsg <Win32 error>     /showism [<Transport DN>] [/verbose] (must be executed locally)     /showsig [DSA]     /showconn [DSA] [Container DN | <DSA guid>] (default is local site)     /showcert [DSA]     /queue [DSA]     /failcache [DSA]     /showctx [DSA] [/nocache]Note:- <Dest DSA>, <Source DSA>, <DSA> : Names of the appropriate servers       <Naming Context> is the Distinguished Name of the root of the NC              Example: DC=My-Domain,DC=Microsoft,DC=Com					
For example, to determine to which domain controller a particular change has replicated, type the following line
repadmin /showmeta"CN=larryli,OU=DesignTeam,OU=Development,DC=ntbeta,DC=microsoft,DC=com" Name of DC
where Name of DC is the host name of the domain controller you want to check for the replicated parameters.

The output of this command is similar to:
Loc.USN  Originating DSA  Org.USN  Org.Date/Time   Ver Attribute--------------------------------------------------------------------------1639     Luxembourg\EMBY  1639 1999-04-23 15:29.37  1 objectClass1639     Luxembourg\EMBY  1639 1999-04-23 15:29.37  1 cn1639     Luxembourg\EMBY  1639 1999-04-23 15:29.37  1 sn1668     Luxembourg\EMBY  1668 1999-04-23 15:37.12  1 c1668     Luxembourg\EMBY  1668 1999-04-23 15:37.12  1 l1668     Luxembourg\EMBY  1668 1999-04-23 15:37.12  1 st1706     Luxembourg\EMBY  1706 1999-04-23 15:38.39  1 title1667     Luxembourg\EMBY  1667 1999-04-23 15:37.12  2 description1668     Luxembourg\EMBY  1668 1999-04-23 15:37.12  1 postalCode1667     Luxembourg\EMBY  1667 1999-04-23 15:37.12  1 physDevOffName1667     Luxembourg\EMBY  1667 1999-04-23 15:37.12  1 telephoneNumber1639     Luxembourg\EMBY  1639 1999-04-23 15:29.37  1 givenName1639     Luxembourg\EMBY  1639 1999-04-23 15:29.37  1 instanceType1639     Luxembourg\EMBY  1639 1999-04-23 15:29.37  1 whenCreated1640     Luxembourg\EMBY  1640 1999-04-23 15:29.37  1 displayName1668     Luxembourg\EMBY  1668 1999-04-23 15:37.12  1 streetAddress1776     Luxembourg\EMBY  1776 1999-04-23 16:32.44  2 NTSecurityDescriptor1851     Luxembourg\EMBY  1851 1999-04-23 17:06.09  2 wWWHomePage1639     Luxembourg\EMBY  1639 1999-04-23 15:29.37  1 name1649     Luxembourg\EMBY  1649 1999-04-23 15:29.38  3 userAccountControl1640     Luxembourg\EMBY  1640 1999-04-23 15:29.37  1 codePage1668     Luxembourg\EMBY  1668 1999-04-23 15:37.12  2 countryCode1704     Luxembourg\EMBY  1704 1999-04-23 15:38.19  2 homeDirectory1704     Luxembourg\EMBY  1704 1999-04-23 15:38.19  2 homeDrive1641     Luxembourg\EMBY  1641 1999-04-23 15:29.37  2 dBCSPwd1640     Luxembourg\EMBY  1640 1999-04-23 15:29.37  1 scriptPath1640     Luxembourg\EMBY  1640 1999-04-23 15:29.37  1 logonHours1640     Luxembourg\EMBY  1640 1999-04-23 15:29.37  1 userWorkstations1641     Luxembourg\EMBY  1641 1999-04-23 15:29.37  2 unicodePwd1641     Luxembourg\EMBY  1641 1999-04-23 15:29.37  2 ntPwdHistory1641     Luxembourg\EMBY  1641 1999-04-23 15:29.37  2 pwdLastSet1640     Luxembourg\EMBY  1640 1999-04-23 15:29.37  1 primaryGroupID1643     Luxembourg\EMBY  1643 1999-04-23 15:29.37  1 supplmntlCredentials1640     Luxembourg\EMBY  1640 1999-04-23 15:29.37  1 userParameters1669     Luxembourg\EMBY  1669 1999-04-23 15:37.12  2 profilePath1639     Luxembourg\EMBY  1639 1999-04-23 15:29.37  1 objectSid1776     Luxembourg\EMBY  1776 1999-04-23 16:32.44  1 adminCount1640     Luxembourg\EMBY  1640 1999-04-23 15:29.37  1 comment1640     Luxembourg\EMBY  1640 1999-04-23 15:29.37  1 accountExpires1641     Luxembourg\EMBY  1641 1999-04-23 15:29.37  2 lmPwdHistory1639     Luxembourg\EMBY  1639 1999-04-23 15:29.37  1 sAMAccountName1639     Luxembourg\EMBY  1639 1999-04-23 15:29.37  1 sAMAccountType1639     Luxembourg\EMBY  1639 1999-04-23 15:29.37  1 userPrincipalName1704     Luxembourg\EMBY  1704 1999-04-23 15:38.19  1 userSharedFolder1639     Luxembourg\EMBY  1639 1999-04-23 15:29.37  1 objectCategory1667     Luxembourg\EMBY  1667 1999-04-23 15:37.12  1 mail1705     Luxembourg\EMBY  1705 1999-04-23 15:38.39  1 homePhone					
By running this command against each domain controller, an administrator can determine whether all domain controllers have the same replicated values. If a specific domain controller does not have the same value, and the change was made some time ago, you can begin investigating why the computer has not yet received the change.
Properties

Article ID: 229896 - Last Review: 02/23/2007 18:26:36 - Revision: 2.4

  • Microsoft Windows Server 2003 Service Pack 1
  • Microsoft Windows 2000 Server
  • Microsoft Windows 2000 Advanced Server
  • Microsoft Windows 2000 Datacenter Server
  • kbenv kbhowto kbtshoot KB229896
Feedback