RepAdmin Commands
Repadmin is a command-line tool in Windows operating systems used to manage and troubleshoot Active Directory replication. It's particularly useful for administrators to monitor and diagnose replication issues in a Windows domain environment. Below are some commonly used repadmin commands:
repadmin /showrepl: Displays the replication status for all domain controllers in the domain.
repadmin /replsummary: Provides a summary of the replication status for each partition on each domain controller.
repadmin /syncall: Initiates an immediate replication for all domain controllers.
repadmin /syncall <source_dc> <destination_dc>: Forces replication between the specified source and destination domain controllers.
repadmin /showvector /latency <DC_DN>: Displays the replication vector and latency for a specific domain controller.
repadmin /showrepl <DC_DN> /partners: Lists the partners from which a specific domain controller receives replication.
repadmin /showrepl <DC_DN> /conn: Lists the domain controllers to which a specific domain controller sends replication.
repadmin /showmeta <DC_DN> <Naming_Context>: Displays metadata information about replication partners for a given domain controller and naming context.
repadmin /istg <DC_DN>: Shows the Inter-Site Topology Generator (ISTG) for a specific site.
Recommended next reads
repadmin /kcc <DC_DN>: Forces the Knowledge Consistency Checker (KCC) to recalculate the replication topology on a specific domain controller.
repadmin /bridgeheads <site>: Displays the preferred bridgehead servers for a specified site.
repadmin /options <DC_DN> -DISABLE_INBOUND_REPL: Disables inbound replication.
repadmin /options <DC_DN> +DISABLE_OUTBOUND_REPL: Disables outbound replication.
repadmin /showutdvec <DC_DN> <NC_DN>: Displays the update sequence number (USN) and replication latency information for a given domain controller and naming context.
Remember to replace <DC_DN> with the distinguished name of the domain controller and <NC_DN> with the distinguished name of the naming context. Additionally, proper care should be taken while using repadmin commands, as they can have significant impacts on the Active Directory replication environment. Always refer to the official Microsoft documentation or seek guidance from experienced administrators when using these commands