# Raise Forest Functional Level
$forest=Get-ADForest
# 2012R2 Level
Set-ADForestMode -Identity $forest -Server $forest.SchemaMaster -ForestMode Windows2012R2Forest -Force
# 2016 Level
Set-ADForestMode -Identity $forest -Server $forest.SchemaMaster -ForestMode Windows2016Forest -Force
Categories:
Mbiko Ngoma
this command didnt work on windows 2012 r2, i received an error that a parameter Confirm=$false does not exist
kimconnect
Thanks for letting me know, Mbiko. I’ve updated that cmdlet, replacing -confirm:$false with -Force.
Issau Neshiri
the command works only that you have to write it in parts say you want to raise the domain forest functional level to Windows2012R2Forest
1. Set-ADForestMode then press enter, you will be prompted for an input you write Windows2012R2
2. input command “Forest” you will be prompted for an input you write the name of your domain eg ad. terrifictech. com
kimconnect
That’s a manual method of accomplishing the task. The commands above already have those variables loaded to bypass the requirements for extra typing… Also, I notice that you’re trying to load a ‘do-follow’ URL into the comment. Since we want to minimize our users’ exposures to spamming websites, I’ve put spacing on the domain names to nullify its do-follow effects. Thanks,