I thought that using a workflow with its foreach –parallel construct would be a good way to test AD replication.
I found that I got double the results – the foreach seemed to go to each machine twice.
Eventually decided to perform the task sequentially
Get-ADDomainController -Filter * |
foreach {
Get-ADReplicationUpToDatenessVectorTable -Target $($psitem.Hostname) -Partition * |
select Server, LastReplicationSuccess, Partition,
@{N=’Partner’; E={(($_.Partner -split ",")[1]).Remove(0,3)}}, USnFilter
} | ft –a
There are a number of cmdlets for working with AD replication that are worth investigating