Configures trust relationship refresh and validation properties.
strComputer = "."Set objWMIService = GetObject("winmgmts:" _& "{impersonationLevel=impersonate}!\\" & _strComputer & "\root\MicrosoftActiveDirectory")Set colReplicationOperations = objWMIService.ExecQuery _("Select * from MSAD_ReplNeighbor")For each objReplicationJob in colReplicationOperationsWscript.Echo "Domain: " & objReplicationJob.DomainWscript.Echo "Naming context DN: " & objReplicationJob.NamingContextDNWscript.Echo "Source DSA DN: " & objReplicationJob.SourceDsaDNWscript.Echo "Last synch result: " & objReplicationJob.LastSyncResultWscript.Echo "Number of consecutive synchronization failures: " & _objReplicationJob.NumConsecutiveSyncFailuresNext
This is a VB Script, this can be used by saving the file in .vbs file