So I am using Get-ADReplicationUpToDatenessVectorTable
It returns something something like whats below, just for every DC, even old and non-existing:
LastReplicationSuccess : 12/21/2017 5:29:13 PM
Partition : CN=Schema,CN=Configuration,DC=YOURDCHERE
PartitionGuid : a6229360-894f-4c6c-aa4b-63737372866c
Partner : CN=NTDS Settings,CN=YOUROTHERDCHERE
PartnerInvocationId : daf3888f-762b-4ae3-8cc0-0934b00aa0e6
Server : YOURDCHERE
UsnFilter : 24426112
What I want to do is take all that data, then filter out the blocks that show NO partner data. So "Partner: "
Then I want to look for LastReplicationSuccess and compare it to todays data. If its more then 1 day off from today do something.
Problem is I am not sure how to parse the data properly to be able to do this.
Anyone have any ideas?