Sync the Active Directory replication between two domain controllers

By | March 7, 2010

Force the active directory replication between two domain controllers

If you want to override the replication schedule or don’t want to wait for the normal replication scheduled, need to initiate a replication immediately from server1.test.com to server2.test.com, you can use the below commands
Syntax:

repadmin /replicate destination_dsa source_dsa Naming Context

Example:

repadmin /replicate server2.test.com server1.test.com dc=test,dc=com

Destination server Name: server2.test.com
Source server Name: server1.test.com
Naming Context : dc=test,dc=com (Domain partition)

Note: you should have a connection object between the source and destination domain controllers in order to complete this command

In this example we are not forcing the Active Directory replication, we only Sync the Active Directory replication between two domain controllers or initiating the Active Directory replication between two domain controllers

If want to force the Active Directory replication you have to use the /force switch

Syntax:
repadmin /replicate destination_dsa source_dsa Naming Context /force

Example:
repadmin /replicate server2.test.com server1.test.com dc=test,dc=com /force

If use the /force switch, this will override the Disable Replication option on a directory server

Note: Do not use this parameter unless you are certain that replication has been disabled, and that you want to override this setting

Leave a Reply

Your email address will not be published. Required fields are marked *