Many times it is useful to re-arm the Expired Windows 2012 R2 edition when it is an evaluation version. The command is as below:
"slmgr.vbs /rearm"
Afterwards, the server needs to restarted.
The Windows Evaluation Period should now be extended to additional 180 days.
After Server restart , wait a moment and you will find the license has been extended successfully.