Get the Active Directory functional levels/FSMO roles forest wide

Get the Active Directory functional levels/FSMO roles forest wide

Description

With the following script, it is possible in the same array to get useful Active Directory informations such as:

  • domain names (DNS fqdn)
  • domain functional level
  • forest functional level
  • fsmo roles

The powershell cmdlets used for this script are the get-adforest and get-addomain. The documentation for these cmdlets can be found here and here.

After that I use the select-object cmdlet (alias: select) to build my array.

The script

The script has been tested successfully on a server running on Windows Server 2012R2

<>

My Powershell script categories

Leave a Reply

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