PowerTip: Use PowerShell to Check Your AD DS Domain Mode

PowerTip: Use PowerShell to Check Your AD DS Domain Mode

  • Comments 2
  • Likes

Summary: Use a Windows PowerShell cmdlet from the ActiveDirectory module to check for the domain mode of your AD DS domain.

Hey, Scripting Guy! Question How can I easily find out the domain mode of my Active Directory Domain Services (AD DS) domain by using a Windows PowerShell cmdlet?

Hey, Scripting Guy! Answer Use the Get-ADDomain cmdlet and select the domainMode property. It is also a good idea to select the DistinguishedName at the same time. This technique is shown here.

11:51 C:\> Get-ADDomain | select domainMode, DistinguishedName

                                domainMode DistinguishedName

                                ---------- -----------------

                         Windows2008Domain DC=Nwtraders,DC=Msft

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment
  • And of course Get-ADForest | Select ForestMode,Domains

  • @Tim Bolton absolutely! Thanks for sharing.