For managing large scale Active directory environment more important part checking and understanding replication quality. In this condition i used repadmin command to check replication healthy. But this command not enough to understand exactly replication finished time. So i start to search internet and find script to check active directory latency with poweshell (http://bsonposh.com/archives/276) when i started this script i understood this script not handle large scale of dc environment. and it’s enter loop if replication will not finished.
After i changed this script ;
user can edit how many time to try replication;
separated replication success&failure situation
Average of replication
How script works first script connect ldap and query how many domain controller have in your environment; then crate test contact under user ou start “savasTest” + (Get-Date -f MMddyyHHmmss)” and after try to connect all dc and check this contact object exist or not.