Tuesday, October 23, 2012

Force Active Directory replication on a domain controller

In order to force Active Directory replication, issue the command ‘repadmin /syncall /AeD’ on the domain controller.  Run this command on the domain controller in which you wish to update the Active Directory database for.  For example if DC2 is out of Sync, run the command on DC2.

A = All Partitions
e = Enterprise (Cross Site)
D = Identify servers by distinguished name in messages.

By default this does a pull replication - which is how AD works by default.  If you want to do a push replication use the following command:

repadmin /syncall /APeD

P = Push

You want to do a push replication if you make changes on a DC and you want to replicate those changes to all other DC's.  For example, you make a change on DC1 and you want all other changes to get that change instantly, run repadmin /syncall /APeD on DC1.

For all repadmin syntax please see:

http://technet.microsoft.com/en-us/library/cc736571(v=ws.10).aspx

12 comments:

  1. Awesome tip ! Thank you very much for sharing this !

    ReplyDelete
  2. Thanks, simple and effective guideline

    ReplyDelete
  3. is thr any way in GUI not by cmd

    ReplyDelete
  4. Sandeep there use to be in 2003 server, however the GUI tool known as RepMon was decommissioned.

    ReplyDelete
  5. Active Directory Sites and Services, Right click under each server the NTDS Settings icon and choose replicate configureation from selected DC.

    ReplyDelete
  6. Very simple and useful explanation! Thanks

    ReplyDelete
  7. Very good explanation.
    Miguel Ângelo Saragoça Soares

    ReplyDelete
  8. Amazing command!!!!!!
    Thank you so much for this!!!

    I'm your biggest fan now.

    ReplyDelete
  9. i have an AD sysvol version mismatch error .....how do i resolve it ?
    Please help...

    ReplyDelete
  10. And I get :
    There is a time and/or date difference between the client and server

    ReplyDelete
  11. Very helpful, man...cheers from Germany!

    ReplyDelete
  12. What if changes were made but the dc that has not received the changed yet is correct. Basically the changes are incorrect. How do you force replicate from older timestamp

    ReplyDelete