Premkumar Yogeswaran's Blog

Active Directory | PowerShell | DNS | DHCP | Exchange Server | VM Ware

Active Directory Replication

Posted by Premkumar Yogeswaran on October 22, 2013


Force Active Directory replication

AD replication is scheduled however some time we require to synchronize manually

There is many ways to do this we will see one by one

Force active directory replication through the Microsoft Management Console (MMC) or Forcing replication through Active Directory Sites and Services snap-in

Go to Start –> Programs –> Administrative Tools –> and open the “Active Directory Sites and Services” MMC.
Expand the “Sites” container in the left pane by clicking the plus (+) to the left of it.
Expand the container that represents the name of the site containing the server that needs to be synchronized.
Expand the “Servers” container and then expand the target server to display the NTDS settings object.
Click the “NTDS Settings” option. In the right pane should now be a list of the target server’s replication partners.
Right click a connection object in the right pane and click “Replicate Now

Force active directory replication through Replmon Tool

Go to Start –> Run –> type replmon –>and this will open a Replmon console
Click on > edit and select –> Add monitored server
Select –>Add the server explicitly by name –>Next
Enter the server name that needs to be synchronized > Finish
Expand the Partition that needs to be synchronized (Exg: Domain partition)
Select the connection object needs to be synchronized
Right click a connection object and click “Synchronize with this replication partner”
Wait for the replication
You will get the status message once the replication get completed
If any error while the time of replication then you will get the meaningful error message

Force active directory replication through Repadmin command

Open the Command prompt CMD
Syntax:
repadmin /replicate destination_dsa source_dsa Naming Context

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

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

Additional switches

/force
This parameter is used to override the Disable Replication option on a directory server. Do not use this parameter unless you are certain that replication has been disabled, and that you want to override this setting.

/async
Specifies that the operation will be asynchronous. This means that repadmin starts the replication event, but it does not expect an immediate response from the destination directory server. Use this parameter when there are slow links between directory servers.

/full
Forces a full replication of all objects from the destination directory server.

/allsources
A given destination can have multiple sources for the same naming context. Directs the destination to sync with all sources instead of just one. This parameter cannot be used with source_dsa.

Force the active directory replication with the entire replication partner

In some scenario you want to force active directory replication with the entire replication partner, let say you have a 10 connection objects corresponding to each of its replication partners and you want to force the replication to all the connection objects on server1.test.com, you can use the blow command.

Syntax:
repadmin /replicate destination_dsa Naming Context /allsources

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

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

I would strongly recommend to use the Replmon tool or repadmin command,to force active directory replication since you will get the meaningful error message and the status message once the replication get completed

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: