There are certain windows cmdlets and utilities which we can use for replication issues troubleshooting purpose. Among those, Repadmin.exe is most commonly used Microsoft utility. This is available in servers which have AD DS or AD LDS role installed. It is also part of Remote Server Administration Tools (RSAT). This utility recommended to run as Domain Administrator or Enterprise Administrator. However, it is also possible to delegate permission only to review and manage replication.
Let’s see it’s in action
repadmin /replsummary /bydest
above command summarizes the replication status for all domain controllers based on the replication destination. This parameter does not display the source domain controller.
repadmin /replsummary /bysrc
above command summarizes the replication status for all domain controllers based on the replication source. This parameter does not display the destination domain controller.
repadmin /showrepl REBEL-SRV01.therebeladmin.com
above command shows the replication partners for REBEL-SRV01.therebeladmin.com and the status of last sync attempt.
repadmin /showrepl /errorsonly
above command will list down the replication partners which have replication errors (last sync attempt failed)
above command initiates domain directory partition synchronization with all replication partners of REBEL-SRV01.
It will also indicate if there were any issues by doing it.
above command shows if there are any unprocessed inbound replications requests. If system keep que requests it can be due to high number of AD changes, System resource issue or too many replication partners.
above command initiate immediate directory partition replication from REBELNET-PDC01 to REBEL-SRV01.
Apart from the repadmin, there are certain PowerShell cmdlets which we can use to troubleshoot replication issues. Get-ADReplicationFailure cmdlet is one of those which can collect data about replication failures.
Get-ADReplicationFailure -Target REBEL-SRV01
Above command will collect information about replication failures associated with REBEL-SRV01.