Upgrade domain controllers to a newer version of Windows Server
For an in-place upgrade of an existing DC, you must run adprep /forestprep and adprep /domainprep manually. You need to run Adprep /forestprep only once in the forest for each newer version of Windows Server. Run Adprep /domainprep once in each domain in which you have DCs that you’re upgrading for each newer version of Windows Server.
Adprep.exe is a command-line tool that is available on the Windows Server 2008 installation disc in the \sources\adprep folder, and it is available on the Windows Server 2008 R2, and newer, installation disk in the \support\adprep folder. You must run adprep from an elevated command prompt. To open an elevated command prompt, click Start, right-click Command Prompt, and then click Run as administrator.
In this table you can see the supported upgrade paths, based on the version you’re currently on.
Upgrade from / to | Windows Server 2008 R2 | Windows Server 2012 | Windows Server 2012 R2 | Windows Server 2016 | Windows Server 2019 | Windows Server 2022 |
Windows Server 2008 | Yes | Yes | - | - | - | - |
Windows Server 2008 R2 | - | Yes | Yes | - | - | - |
Windows Server 2012 | - | - | Yes | Yes | - | - |
Windows Server 2012 R2 | - | - | - | Yes | Yes | - |
Windows Server 2016 | - | - | - | - | Yes | Yes |
Windows Server 2019 | - | - | - | - | - | Yes |
So we need to run the following command to prepare the Forest:
1
adprep /forestprep
And then for each Domain controller we want to upgrade:
1
Adprep /domainprep /gpprep