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

PowerShell: Windows Systems Inventory

<# Systems-Inventory.ps1 Version: 0.04 Purpose: to generate a report with information about servers on the…

PowerShell RandomPassword Function

function randomPassword{    # return a reasonably randomized password that starts with "KimConnect:" plus 25…

PowerShell: Check Servers on Domain to Locate A Domain Account Being Set to Run Services and Scheduled Tasks

# Obtain the name of the default domain Administrator account (this account is expected to…