There are various ways to check Active Directory Replication Status. You can use Repadmin.exe command, which ships with the Operating System, to check the status of the Active Directory Replication. Similarly, PowerShell also offers a number of modules for Active Directory. There are 6 PowerShell cmdlets offered by PowerShell to manage or troubleshoot the Active Directory replication issues. You can use the following replication management cmdlets to view and troubleshoot Active Directory replication issues:
- Get-ADReplicationAttributeMetadata
Shows the replication metadata for the attributes of the distinguished name specified.
- Get-ADReplicationFailure
Gets information about replication failure for a specified server, site, domain, or forest.
- Get-ADReplicationPartnerMetadata
Gets replication metadata for a specified server, site, domain, or forest.
- Get-ADReplicationQueueOperation
Gets pending operations on a server’s replication queue.
- Get-ADReplicationUpToDatenessVectorTable
Gets the highest USN for the specified server, site, domain, or forest.
- Sync-ADObject
Replicates the specified directory object.
An example of checking the Active Directory Replication status in a domain is shown below using the Get-ADReplicationFailure cmdlet:
Get-ADReplicationFailure -Target “MyDomain.com” -Scope Domain
Note: You must import the Active Directory modules using Import-Module ActiveDirectory before you can use the above mentioned cmdlets for Active Directory.