Hello everyone,
a few weeks ago, we needed to upgrade a few Windows Server 2016 servers to Windows Server 2022. Rather than migrating the applications, we wanted to try an in-place upgrade. The applications were not mission-critical, so having them offline for a few hours, wasn’t an issue.
But unfortunately, when trying to upgrade using the evaluation ISO, Microsoft provides, the option to upgrade without deleting everything was grayed out. After searching for a bit, it turns out, that Microsoft does not allow the evaluation ISO to be used for upgrades, but there is a workaround. We can change the “Edition” of the ISO to ServerStandard or ServerDatacenter.
The whole credit for this process goes to the German blogger Andy. You can find the link to the blog at the bottom.
Let’s begin.
Changing the ISO
First, download the required ISO, and extract it into a folder (C:\W2022 in my case). I will be using the “Windows Server 2022 Evaluation” ISO.
Now, open the CMD and navigate to the root of C: and create 2 folders.
C:\Users\user> cd ..\..
C:\> mkdir mount W2022
After this, we can map the ISO to the folder and change the edition.
# Map the install.wim to the "mount" folder.
C:\> dism /mount-wim /wimfile:C:\W2022\sources\install.wim /mountdir/:C:\mount /index:2
# Check the current and available versions.
C:\> dism /image:E:\Mount /get-currentedition
C:\> dism /image:E:\Mount /get-targeteditions
# Change the edition.
C:\> dism /image:E:\Mount /set-edition:ServerStandard
# Commit the changes and unmount the install.wim.
C:\> dism /unmount-wim /mountdir:E:\Mount /commit
After this, you can either change the files back into an ISO or just start the installation on the server you want to update.
That’s it.
If you want a more detailed guide, check the original blog post.