RepADMIN.exe

Diagnose Active Directory replication problems between domain controllers.

Repadmin may be installed if you select the Active Directory Domain Services Tools as part of the RSAT feature or by default, with the AD DS or AD LDS server roles.

The syntax for Repadmin does vary by server version, so it is important to check using the help available locally.

Syntax
      repadmin command args [/u:{domain\user}] [/pw:{password | *}]
         [/retry[:retries][:delay]] [/csv]

      repadmin /replsummary dc_name  Summary view of current replication health.

      repadmin /Queue dc_name       Display items in the queue waiting to be replicated.

      repadmin /Showrepl dc_name    Display the GUID of each object and the replication result. 

      repadmin /?            Display commands that are available.

      repadmin /?:command    Display possible arguments args, appropriate syntaxes, and examples for command.

      repadmin /experthelp   Displays commands that are available for advanced users only.

      repadmin /listhelp     Display the variations of syntax that are available for the
                             DSA_NAME, DSA_LIST, NCNAME and OBJ_LIST strings.

      repadmin /oldhelp      Display help for the Windows 2000/2003 Server versions of Repadmin.

Starting with Windows Server 2012, Microsoft has also included the ability to check AD replication status using Windows PowerShell.

Get-ADDomainController
Get-ADReplicationFailure
Get-ADReplicationAttributeMetadata
Get-ADReplicationPartnerMetadata
Get-ADReplicationQueueOperation
Get-ADReplicationUpToDatenessVectorTable
Sync-ADObject

Examples

Sync any server changes inwards to the domain controller dc_name:

C:\> repadmin dc_name /syncall /Adeq

Sync outwards from the domain controller dc_name to all other DCs:

C:\> repadmin dc_name /syncall /AdeqP

“One resolution I have made, and try always to keep, is this: To rise above little things” ~ John Burroughs

Related commands

Active directory PowerShell cmdlets - in particular the -adReplication* cmdlets.


 
Copyright © 1999-2024 SS64.com
Some rights reserved