New Contributor

Hi, I created a VM and installed windows server 2019 Essentials Evaluation and after 3 months I decided to buy the original license (OEM).
Activation fails and generates an error message:
The product key entered does not work. Check it and try again or enter a different one (0xc0020036)
From cmd, it reports Error 87, Invalid Product Code KEy.
I tried these commands:
slmgr -ipk <KEY>
(0xc0020036) On a computer running a non-core edition of Microsft windows, run slui 0x02 0xC0020036 to view the error text. If I run the command it tells me "No Endpoint available in the endpoint mapping"

I tried to do these procedures but without success:

sfc / scannow
dism / online / cleanup-image / restorehealth

Also I have another problem but I don't know it is related, Windows update does not install the latest updates: KB4601345 (code error 0x800f0986), KB4601345 (code error 0x80070643)

Windows Server 2019 Essential is not a Domain Controller, there are no Antivirus and the only firewall is the Defender that I have also tried to disable.

What can I do to activate the license?