Hello,
First of all. Make sure your computer:
- Make sure you have a valid product key and activation method. Keys and methods may vary depending on the distribution channel you received Windows Server media from, for example a Commercial Licensing program, Retail, or Original Equipment Manufacturer (OEM).
- Ensure that the install media is ready to use.
- Have a location to store files away from your computer, such as a USB flash drive or network location.
- Review Upgrade and migrate roles and features in Windows Server.
- Review Microsoft server applications compatibility.
- Review any third-party application vendor support requirements.
- Make sure your computer:
To perform an in-place upgrade from Windows Server 2019 to Windows Server 2022, follow these steps:
- Using File Explorer, navigate to the Windows Server Setup media. Then open setup.exe.
- By default, setup automatically downloads updates for the installation. If you're okay with the default settings, select Next to continue.
If you don't want Setup to automatically download updates, select Change how Setup downloads updates, choose the option appropriate to your environment, and then select Next.
- If prompted, enter your product key and then select Next.
- Select the edition of Windows Server you want to install and then select Next.
- Review the applicable notices and license terms. If you agree to the terms, select Accept.
- Select Keep personal files and apps to choose to do an in-place upgrade, and then select Next.
- After Setup finishes analyzing your device, it displays the Ready to install screen. To continue the upgrade, select Install.
The in-place upgrade starts, and you should see a progress bar. After the upgrade finishes, your server restarts.
More details please refer to this link: Perform an in-place upgrade of Windows Server | Microsoft Learn
Note: Before performing the upgrade, it is recommended to take a backup of your important data and create a system restore point.
Best Regards,
Hania Lian