Hi all,
I'm trying to write a script to do some rudimentary AD replication checking. At the moment I'm running a repadmin /replsummary which identifies domain controllers that are failing inbound replication.
What I'd like to do is use Repadmin /showutdvec to check outbound replication (in a sense) as /replsummary only checks connection objects that the KCC has created, and not for instances where the KCC hasn't created any connection objects. For this I'd like to use /showutdvec then check the date it reports back is listed as today, for those non-GUID entries.
So the code would look something like:
Get all domain controllers in the forest (multi-domain forest)
For each in the list, run:
repadmin /showutdvec serverName "dc=domainName,dc=co,dc=uk"
Check the output and highlight any valid entries e.g. not GUIDS, or those lines without a \ in the name field as non-GUIDs come back as siteName\serverName, and highlight those which don't report todays date.
There is the PowerShell equivalent now which I'd be happy to use if we could highlight what I've mentioned above:
Get-ADReplicationUpToDatenessVectorTable
Thanks!