What are the Active Directory Replication Management PowerShell Modules?
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:
Shows the replication metadata for the attributes of the distinguished name specified.
Gets information about replication failure for a specified server, site, domain, or forest.
Gets replication metadata for a specified server, site, domain, or forest.
Gets pending operations on a server’s replication queue.
Gets the highest USN for the specified server, site, domain, or forest.
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.