Sometimes I just need a way to quickly find out some information about an Active Directory environment. In particular, details such as the functional mode of the forest as well as each domain, the FSMO role holders, and the global catalog servers in each AD site.

I’ve written a PowerShell script that pulls this information for me and outputs it to the console as well as to a HTML file. The HTML file is useful for when the info needs to be bundled into some documentation or reports about the environment.

You can find the script on Github – Get-ADInfo.ps1

The script requires the Active Directory module for PowerShell, so you can run it on a DC or anywhere the RSAT tools are installed.