PoshTip #41 – How To Get AD Forest and AD Domain Functional Level?

This blog post explains how to get the Domain and Forest level of your Active Directory using Windows PowerShell.

There are 2 cmdlets:

  • Get-ADDomain
  • Get-ADForest

You can filter the results with Name and Domain/Forest Mode parameters:

PS C:\Users\Administrator> Get-ADDomain | fl Name,DomainMode

Name       : get-cmd
DomainMode : Windows2016Domain

PS C:\Users\Administrator> Get-ADForest | fl Name,ForestMode

Name       : get-cmd.Local
ForestMode : Windows2016Forest



Thanks for reading! You can follow me on Twitter @PrigentNico

About Nicolas 276 Articles
I work as an IT Production Manager, based in Paris (France) with a primary focus on Microsoft technologies. I have 10 years experience in administering Windows Servers. . I am a Microsoft MVP for Cloud & Datacenter Management. I also received the PowerShell Hero 2016 award by PowerShell.0rg. And finally, I am "MCSE: Cloud Platform and Infrastructure", "MCSA: Windows Servers", "Administering & Deploying SCCM", and CheckPoint CCSA certified.