Posted On July 12, 2019

PowerShell: Raise Domain Forest Functional Level

kimconnect 4 comments
blog.KimConnect.com >> Codes >> PowerShell: Raise Domain Forest Functional Level
# 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

4 thoughts on “PowerShell: Raise Domain Forest Functional Level”

  • 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

    • 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,

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

Changing SMB Caching on Windows

# To turn OFF caching $rolesWithNoCaching="SHERVER01","SHERVER02" $rolesWithNoCaching | %{$shares=Get-SMBShare -scopename "$_"; foreach ($share in $shares){if(!($share.Name…

WordPress Plugin Syntax Highlighter Fix

Source: from a forum poster of this plugin's Github page. // Add this to functions.php…

PowerShell: Chicken Scratch Ports Scanner

Although there are optimized applications to perform this task such as Angry Port Scanner, NMAP,…