In-Place Upgrade for a Windows Server Domain Controller

When upgrading a Windows server installation that's also a Domain Controller, you may run into some issues that prevent the installation form continuing, for the duration of this post, I'll be focusing on one specific error and that's the 'Active Directory on this domain controller does not contain Windows Server 2019 ADPREP /FORESTPREP updates.' error message that completely prevents the installation from continuing.

Information:

In my particular case, I'm upgrading a Windows Server 2012 R2 installation to Windows Server 2019, and this server is also one of two domain controllers on the network. Running the Server 2019 installation media at first seems to run without an issue, but right before the installation begins, you're greeted with:

Active Directory on this domain controller does not contain Windows Server 2019 ADPREP /FORESTPREP updates.

This is because the naming schema version is too low for the installation to proceed, see below for naming schema versions:

Windows Server Version Schema Version
Windows Server 2000 13
Windows Server 2003 30
Windows Server 2003 R2 31
Windows Server 2008 44
Windows Server 2008 R2 47
Windows Server 2012 56
Windows Server 2012 R2 69
Windows Server 2016 87
Windows Server 2019 88

To find your schema version before installation, you can run the following Powershell command: 

Get-ADObject (Get-ADRootDSE).schemaNamingContext -Property objectVersion

Once the command has executed, your schema version will be displayed as ObjectVersion.

Upgrading the schema to let the Windows Server In-Place upgrade continue

The software to upgrade the schema comes with the Windows Server installation media, it is located under '/support/adprep' directory of the installation media/iso.

Adprep installation folder

 

cd I:\support\adprep
I:

Then type the following command to begin the forest schema upgrade:

adprep.exe /forestprep

The action will complete and a report on its operation will be displayed within the command prompt window, in my case the schema was upgraded from version 69 (Server 2012 R2) to version 88 (Server 2019).

There is one last command to execute before windows installation can proceed, you'll need to run the following command to update the domain wide information:

Adprep.exe /domainprep

Begin Windows Server In-Place Upgrade

You're no free to begin the windows server in place upgrade by running the setup.exe file located within windows installation media root directory. Be sure to choose to 'Download updates, drivers and optional features' as this will ensure the smoothest possible installation.

That's all!


Published at

Tags: Windows,Server,Active Directory,AD

Luke Alderton

Comments

Cathy
Thank you so much for this. I was stuck and this was the ONLY article that I could find that gave me info that I could follow!
31/07/2021
Share with
Tags
Latest Comments
By Mark Gentry on Windows Server 2019 - Change product key does nothing
20 Aug 2021, 03:30 AM
By Cathy on In-Place Upgrade for a Windows Server domain controller
31 Jul 2021, 18:28 PM
By Mr. Greymatter on Raspberry Pi - Running Java app on Raspbian
16 Feb 2021, 07:35 AM
By Mikko Seittenranta on Xamarin Forms multiple instances of same app open
16 Feb 2021, 04:34 AM
By Andrew on Auto/Custom height on Xamarin Forms WebView for Android and iOS
22 Jan 2021, 22:15 PM
By Nick on Raspberry Pi - Running Java app on Raspbian
14 Oct 2020, 19:37 PM
By Ivan on Fixed: Value cannot be null Parameter Name: source
15 Sep 2020, 19:47 PM
By Anand on Raspberry Pi - Bluetooth using Bluecove on Raspbian
7 Sep 2020, 16:53 PM
Categories
App Development
Event
Game Development
Mapping
Modelling
Programming
Review
Robotics
Tutorial
Web Development