Get all DC’s, FSMO role holders and uptime

As an IT consultant I often visit new customers and it is always good practice to just double check which DC’s are available in the organization, which sites they belong etc.

To make it easy for myself I created a script that will get the:

  • DC’s in the domain
  • Uptime (in Hrs.)
  • Site the DC belongs to
  • IP address
  • OS Version
  • GlobalCatalog
  • if the DC is a read-only DC
  • Who carries which FSMO role

The below script will get this information and display it in your powershell session. You could customize the script to get more information are have the results emailed to yourself.


Below is an example of the output:

I hope this was informative. For questions or comments you can always give a reaction in the comment section or contact me:


Leave a Reply

Your email address will not be published.

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