Active Directory Series

⬆️ The Top 1% Hands-On for Raising Domain and Forest Functional Levels: Safely Performing an Irreversible Operation

Introduction

This article is part of the Top 1% Series Complete Article Guide, the 39th article in the Active Directory Series.

Prerequisites

The Big Picture

This hands-on consists of three steps.

graph LR
    Step1["Step1<br/>Check the current<br/>functional levels"]
    Step2["Step2<br/>Raise the domain<br/>functional level"]
    Step3["Step3<br/>Raise the forest<br/>functional level"]
    Step1 --> Step2 --> Step3

Hands-On Steps

Step 1: Check the current functional levels

Even after decommissioning the old DC, the domain and forest functional levels don’t automatically go up on their own. Check the current values.

Get-ADDomain | Select-Object DomainMode
Get-ADForest | Select-Object ForestMode

It’s common to find the functional level still stuck at a low value matching the old DC’s OS version, even though the old DC no longer exists. That’s because decommissioning the old DC doesn’t automatically raise the functional level at all.

Step 2: Raise the domain functional level

After confirming every DC in the target domain runs an OS version compatible with the level you’re raising to, raise the domain functional level.

Set-ADDomainMode -Identity "example.com" -DomainMode "Windows2016Domain"

Pause here before running this command. Raising the domain functional level is an irreversible operation. Once raised, you can never add a DC running an older OS version to that domain again. If there’s even a remaining chance of a plan to add an older-OS DC in the future, hold off on running this command.

Step 3: Raise the forest functional level

After confirming every domain in the forest has already raised its domain functional level to the target level, raise the forest functional level.

Set-ADForestMode -Identity "example.com" -ForestMode "Windows2016Forest"

Raising the forest functional level requires every domain in the forest to have already reached at least the same domain functional level you’re raising to. In a multi-domain forest, if even one domain is still stuck at a lower functional level, this command fails.

What a Pro Sees Here (Top 1% Understanding)

Why raising a functional level is irreversible

A functional level is essentially an AD DS-wide “agreement” that enables new features available from that level onward (Fine-Grained Password Policies, covered in A Hands-On Lab: Applying Different Password Requirements With a PSO, assumed a Windows Server 2008-or-later functional level, for example). Once you actually start using a new feature that the new functional level assumes, an older-version DC simply lacks the ability to process that new feature correctly at all. So the path of lowering the functional level again to readmit an older DC is deliberately closed off. This is AD DS’s own safety mechanism, protecting against breaking backward compatibility.

Why the forest functional level acts as a “ceiling” on domain functional levels

Every domain’s functional level must be aligned before raising the forest functional level, because some of the new features a forest functional level enables involve information shared across the entire forest — things like the configuration partition and schema partition, covered in The Difference Between AD, DCs, Domains, and Forests. If even one domain is left with lower-functional-level DCs while forest-wide new features get enabled, that domain’s DCs could end up unable to correctly process information that’s supposed to be shared across the whole forest. Understanding that the forest functional level is, in effect, capped by the lowest domain functional level currently in the forest makes it click why functional-level management in a multi-domain environment tends to get complicated.

Common Misconceptions and Pitfalls

Troubleshooting Perspective

  1. Set-ADDomainMode fails: Check whether that domain still has an older-OS DC incompatible with the level you’re raising to.
  2. Set-ADForestMode fails: Check whether every domain in the forest has already raised its domain functional level to the target level.
  3. A specific application stops working after raising the functional level: Check whether that application depends on behavior specific to the older functional level. Thoroughly verifying this in a test environment before running it in production matters here.

Summary

Takeaways to Apply Today

  1. Include raising functional levels as a checklist item at the end of a DC migration project.
  2. Before raising a functional level, confirm with stakeholders that there’s genuinely no plan to add an older-OS DC in the future.

References

Comments

Feel free to leave thoughts, questions, or corrections below (sign in with a GitHub account to comment or react).