Hello Reza R,
If your server meets the hardware requirements, the next step is to purchase a valid Windows Server 2025 license through official Microsoft channels or an authorized reseller. Since you mentioned you want to upgrade without losing data, the supported way is an in‑place upgrade. Microsoft allows direct upgrades from Windows Server 2019 and 2022 to Windows Server 2025, provided the edition matches (Standard → Standard, Datacenter → Datacenter).
Before starting, make sure you have a full backup of the system and configuration. Even though in‑place upgrades are designed to preserve roles, data, and settings, there is always a risk of incompatibility or failure. You should also update all drivers and firmware to the latest versions before running setup.
To perform the upgrade, mount the Windows Server 2025 installation media, run setup.exe, and choose the option to keep files, applications, and settings. The installer will check compatibility and proceed with the upgrade. After the upgrade, verify that all server roles are functioning correctly, especially if you are running Active Directory, Hyper‑V, or Remote Desktop Services.
If you are currently on an older version than Server 2019, you cannot jump directly to 2025. You would need to upgrade in stages (for example, 2016 → 2019 → 2025).
For licensing, a MAK or KMS key from your Volume Licensing agreement or a retail key from Microsoft will be required. If you are in a corporate environment, coordinate with your licensing administrator to ensure the correct activation method is used.
I hope you've found something useful here. If it helps you get more insight into the issue, it's appreciated to accept the answer. Should you have more questions, feel free to leave a message. Have a nice day!
Domic Vo.