Hello
In short no it's not recommended method as mentioned in the link below
Upgrading the server Operating System.
If you want upgrade the Operating system of EntraConnect Server , you should migrate to new server or following these steps if you have only this server.
- Export Entra Connect settings
- Rebuild the server with target OS Windows 2019 or Windows 2022
- Install EntraConnect server using settings exported in Step 1.
If you have a second EntraConnect server in staging mode, you can perform the following steps:
- Export Entra Connect server on staging server
- Rebuild the staging server with target OS Windows 2019 or Windows 2022
- Install EntraConnect server using settings exported in Step 1 and enable staging mode
- Enable staging mode on first server
- Disabe staging server on second server
- Export Entra Connect settings on first server
- Rebuild the first server with target OS Windows 2019 or Windows 2022
- Install EntraConnect on first server using settings exported in Step 1.
Please don't forget to accept helpful answer