Skip to content

Instantly share code, notes, and snippets.

@krypted
Last active May 7, 2016 22:09
Show Gist options
  • Save krypted/f4864fe7707cac944c854b08c4d81369 to your computer and use it in GitHub Desktop.
Save krypted/f4864fe7707cac944c854b08c4d81369 to your computer and use it in GitHub Desktop.
Changes the Active Directory Forest Mode to Windows2008Forest and Domain Mode to Windows2008Domain
Import-Module -Name ActiveDirectory
Set-ADForestMode –Identity “krypted.com” –ForestMode Windows2008Forest
Set-ADDomainMode –Identity “krypted.com” –DomainMode Windows2008Domain
Get-ADForest | Format-Table Name , ForestMode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment