Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save OmerMicrosoft/dd427f70c836bc86a3d5bf7ceef75b88 to your computer and use it in GitHub Desktop.
Save OmerMicrosoft/dd427f70c836bc86a3d5bf7ceef75b88 to your computer and use it in GitHub Desktop.
#Changing The Forest Level
$CurrentForest = Get-ADForest
Set-ADForestMode -Identity $CurrentForest -Server $CurrentForest.SchemaMaster -ForestMode Windows2008R2Forest
#Changing The Domain Level
$CurrentDomain = Get-ADDomain
Set-ADDomainMode -Identity $CurrentDomain.Name -Server $CurrentDomain.PDCEmulator -DomainMode Windows2008R2Domain
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment