AD Replication - Replicate AD single Objects between the Domain Controller's

                           Replicate AD single Objects between the Domain Controller's
Hello Folks,

Today I had a request to investigate a critical issue related to objects (attributes) not replicated in Active Directory between the two Domain Controller's - HQ and Branch Office that are connected over the WAN link.

To save the Network bandwidth and core services, AD replication schedule is set to replicated every 8 hours (Too high and don't ask me why it is 8 hours - Face palm moment)  and this was the cause that the objects were not reflected in the branch site.

I came across this cool command that is supported in Windows 2012R2, Repadmin command-line tool includes this sweet little feature that we can use to replicate data between the two domain controllers even if it's outside the schedule.

This is also useful when troubleshooting replication problems between the sites.

The switch is "repadmin /replsingleobj"  (In the previous edition of Windows Servers the command was replsingleobject however this has been shortened to replsingleobj).

Complete command:

C:\Repadmin /replsingleobj SourceDC DestinationDC ObjectDN

Object Distinguish Name follows the LDAP DN rules. Example is User Name JamesBovik created in HR OU of Corp.Arkah.com Domain will be DN: CN=JamesBovik,OU=HR,DC=Corp,DC=Arkah,DC=com.

Note if the DN has any spaces in it, please include usual quotes.

Example with the syntax:

repadmin /replsingleobj DC1.corp.arkah.com DC2.corp.arkah.com CN=JamesBovik,OU=HR,DC=Corp,DC=Arkah,DC=com.

Hope this has help anyone that has this sort of setup to replicate single object in the Domain.

Have a good day!



Comments

Popular posts from this blog

Windows 11 22H2 RDP disconnects and freezes randomly

Certification - 70-533

Windows 2019 Server Change TimeZone error "Unable to continue" You Do not have permissions to perform this task.