Kindly initiate the command prompt with administrative privileges and execute the following instruction:slmgr.vbs -rearm
Restart Windows Server 2012 R2.
In order to renew the license for Windows Server 2019, it is requisite that you input the following command:
slmgr -rearm
Restart Windows Server 2019.