Recently we have bough a new Dell PowerEdge R640 server for my current company, where we have got Windows 2019 Server ROK key.
Since I wanted to use as primary OS Proxmox VE and then virtualize everything I just installed on VM Windows Server 2019 Evaluation Standard on it.
After some test with our company software, I was ready to activate the Windows Licence Key on that machine. The Windows activation procedure via GUI cannot use that key, so from the terminal I have done this:
C:\Windows\System32\DISM /online /Set-Edition:ServerStandard /ProductKey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX /AcceptEula
Deployment Image Servicing and Management Tool
Image Version: 10.0.17763.1790
Starting to update components...
Starting to install product key...
Finished installing product key.
Removing package Microsoft-Windows-ServerStandardEvaluation~31bff3856ad364e35~amd64~~10.0.17763.1
Finished updating components.
Starting to apply edition-specific settings...
Finished applying edition-specific settings.
The operation completed successfully.
Restart Windows to complete this operation.
Do you want to restart the computer now? (Y/N)
(of course in /ProductKey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX you have to enter your ProductKey)
After hiting Y the VM machine with Windows Server 2019 Evaluation restarted and stared to clean up some settings:
And after the reboot and login into the Windows Server 2019 I've got this:
And the system has been activated also
And tha't it :)