Skip to content

Instantly share code, notes, and snippets.

@martin9700
Created November 27, 2016 12:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save martin9700/ed3ebb27c956880226f1a19d56be1acd to your computer and use it in GitHub Desktop.
Save martin9700/ed3ebb27c956880226f1a19d56be1acd to your computer and use it in GitHub Desktop.
Context "Domain Replication" {
$ReplErrors = Get-ADReplicationPartnerMetadata -Target * -Partition *
It "Last Replication Result" {
$ReplErrors | Measure-Object -Property LastReplicationResult -Sum | Select -ExpandProperty Sum | Should Be 0
}
It "Consecutive Replication Failures" {
$ReplErrors | Measure-Object -Property ConsecutiveReplicationFailures -Sum | Select -ExpandProperty Sum | Should Be 0
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment