Read this guide.
Download the ISO here:
https://software-download.microsoft.com/download/sg/17763.379.190312-0539.rs5_release_svc_refresh_SERVER_EVAL_x64FRE_en-us.iso
Flash it using WoeUSB on Linux or Rufus on Windows.
Follow the installation steps.
You should be able to change the edition using DISM.
Dism /online /Set-Edition:ServerStandard /AcceptEula /ProductKey:N69G4-B89J2-4G8F4-WWYCC-J464C
Product key taken from: https://github.com/SystemRage/py-kms/wiki/Windows-GVLK-Keys#windows-server-2019
Reboot when it's done changing the base package.
Installing the KMS key ensures that the server is activated and stays activated. KMS only manages activation of the server and nothing else, so don't worry about some remote security flaw bullshit.
Change Directory to System32 if not already in.
cd C:\windows\system32
Uninstall the current product key.
cscript //nologo slmgr.vbs /upk
Install the new one.
cscript //nologo slmgr.vbs /ipk N69G4-B89J2-4G8F4-WWYCC-J464C
Set target KMS server (I use kms8.msguides.com because in my experience it's reliable).
cscript //nologo slmgr.vbs /skms kms8.msguides.com
Activate your product. If it does not work wait 5 minutes and try again. Do this twice if it doesn't work. If it still doesn't work please ask in the comments.
cscript //nologo slmgr.vbs /ato
???
You just activated Windows Server at $0 cost. Note that I do not know if this actually works as I have not waited 180 days to see if it fails.
Working perfectly!!!! thank you so much!!!!
Lets see in 180 days, what the system does.