Learn about Windows PowerShell
Summary: Use Windows PowerShell to display replication connections in Active Directory Domain Services.
How can I use a cmdlet from the Active Directory module to display replication connections in AD DS?
Use the Get-ADReplicationConnection cmdlet and select the ReplicateFromDirectoryServer property and the ReplicateToDirectoryServer property (this is a single-line command broken at the pipe character for readability):
select ReplicateFromDirectoryServer, ReplicateToDirectoryServer