Changing Server Edition Licensing

I accidentally installed the wrong version of Windows Server on a new server. Rather than reinstall the OS, I found that you can change the version using DISM.

Note: You can only move forward to a higher edition.

From an administrative command window

dism /online /Set-Edition:<target_edition_ID> /AcceptEula /ProductKey:<product_key>

target edition id was ServerDatacenter
Product key was the “client” setup key for our KMS license.

The client setup keys can be looked up on Microsoft’s web site.

https://docs.microsoft.com/en-us/windows-server/get-started/kmsclientkeys