Check Active Directory Latency Script

Here is a neat Powershell script that:

  • Finds all Domain Controllers in the Domain (using .NET)
  • Creates a contact object in a specified OU (Default is users container for the Domain)
  • Gets the start Time
  • Loops and Checks each DC for the object.
  • Once all DCs have the object it gets End Time
  • Outputs the results

Basically you can check how long it takes to replicate to each of your sites. Very Usefull !

2 thoughts on “Check Active Directory Latency Script

  1. Ciprian SEUCAN

    Hi Alan,

    First I would like to thank you for your great work and sharing.
    I’m looking for a simple and efficient solution to keep an eye on the DC’s of one of our clients. I think I’m in the right place but the door to the treasure is not working 🙂 link problem! 🙂

    Best regards,
    Ciprian

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.