header image

Forest and domain modes

Posted by: | April 20, 2009 | No Comment |

We can find the forest and domain modes using the following commands

Get-ADDomain -Identity grayson | select DomainMode

Get-ADForest grayson | select forestmode

The modes can be set from the GUI as normal or

Set-ADDomainMode -Identity grayson -DomainMode Windows2008R2Domain
Set-ADForestMode -Identity grayson -ForestMode Windows2008R2Forest

Not that you will be using these cmdlets very often

 

under: PowerShell and Active Directory