If it doesn't work and getting an error like: Error: 0xC004F069 orError 1168 the specified product key could not be validated, You need a Retail product key (which you will get if purchased from us) and use DISM command to upgrade Windows Server Edition from evaluation edition to Standard or Datacenter edition.
Sometimes you may need to uninstall the previous key by this command:slmgr /upk
Please be sure that your server is running Up to Date on the current version, so complete all update before the conversion!! For this issue, please check this link to be sure about your server version and the current version or use the following both command on PowerShell/Command Prompt - Run as Administrator:
DISM /online /get-currentedition
DISM /online /get-targeteditions
Type following command on command prompt or PowerShell/Windows Terminal to upgrade your Windows Server Standard or Datacenter evaluation version to Retail version.
Standard Edition: DISM /Online /Set-Edition:ServerStandard /ProductKey:xxxxx-xxxxx-xxxxx-xxxxx-xxxxx /AcceptEula
Datacenter Edition: DISM /Online /Set-Edition:ServerDatacenter /ProductKey:xxxxx-xxxxx-xxxxx-xxxxx-xxxxx /AcceptEula
Click Y and restart the system and it's done. Please note: This method only work with Retail License for upgrading from Windows Server Evaluation version to Retail & Licensed version. If you purchased from us and going to implement your server on the environment by our given Server OS and License, simply skip it. It's only required for whom, who already installed Windows Server Evaluation version.
Still have the issue? Please use/install the Generic Volume License Keys (GVLK) at first which you will get from this link, and take a restart of your server and then try again with your purchased Retail License which you will get from us(if purchased from us) or from another retail seller. Otherwise you can contact withMicrosoft Support also for fixing the issue.
If the server is running an evaluation version of Windows Server Standard/Datacenter as Domain Controller, you can convert it to a retail version as follows:
If the server is a domain controller, you cannot convert it to a retail version. In this case, install an additional domain controller on a server that runs a retail version and remove AD DS from the domain controller that runs on the evaluation version. For more information, see //technet.microsoft.com/library/hh994618.aspx.
Read the license terms.
From an elevated command prompt, determine the current edition name with the command DISM /online /Get-CurrentEdition. Make note of the edition ID, an abbreviated form of the edition name. Then run DISM /online /Set-Edition:<edition ID> /ProductKey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX /AcceptEula, providing the edition ID and a retail product key. The server will restart twice. Example: DISM /Online /Set-Edition:ServerDatacenter /ProductKey:xxxxx-xxxxx-xxxxx-xxxxx-xxxxx /AcceptEula
For the evaluation version of Windows Server Standard, you can also convert to the retail version of Windows Server Datacenter in one step using this same command and the appropriate product key. For more information about Dism.exe, see //go.microsoft.com/fwlink/?LinkId=192466.
Nothing works? Please use the Generic Volume License Keys (GVLK) first which you will get from this link, and take a restart of your server and then try again with your purchased Retail License which you will get from us(if purchased from us) or other Microsoft Partner/Seller. Otherwise you can contact withMicrosoft Support also for fixing the issue as you will have a genuine license for activation.
Seems like complicated? Why not reinstalling the server over your current server? It will give you an option to keep old data while installing the server.
Upgrade Restrictions (I was successful on a domain controller but do so at your own risk)
- You cannot upgrade a server with an Active Directory Domain Service domain controller role. It will first have to be demoted to a member server
- NIC Teaming must be disabled before upgrading
- Windows Server Evaluation Datacenter cannot be upgraded to Windows Server Standard Full
- You can convert both the full GUI version of Windows Server and the Windows Server Core (converting the trial version of Server Core is supported starting from the release of Windows Server 2016 14393.0.161119-1705.RS1_REFRESH)
If at any point the progress gets stuck at 10% (greater than 10 minutes) disconnect the network cable and it should continue
Once complete you can then activate with your retail or open license volume MAK key
These are Microsoft GVLK keys which you will replace with your licensed key after the upgrade
A reboot is required so plan for that
Server 2016 Standard
dism /online /set-edition:ServerStandard /productkey:WC2BQ-8NRM3-FDDYY-2BFGV-KHKQY /accepteula
Server 2016 Datacenter
DISM /online /Set-Edition:ServerDatacenter /ProductKey:CB7KF-BWN84-R7R2Y-793K2-8XDDG /AcceptEula
Server 2019 Standard
dism /online /set-edition:ServerStandard /productkey:N69G4-B89J2-4G8F4-WWYCC-J464C /accepteula
Server 2019 Datacenter
dism /online /set-edition:ServerDatacenter /productkey:WMDGN-G9PQG-XVVXX-R3X43-63DFG /accepteula
Server 2022 Standard
dism /online /set-edition:serverstandard /productkey:VDYBN-27WPP-V4HQT-9VMD4-VMK7H /accepteula
Server 2022 Datacenter
dism /online /set-edition:serverdatacenter /productkey:WX4NM-KYWYW-QJJR4-XV3QB-6VM33 /accepteula
Reference:
How to Convert (Upgrade) Windows Server 2019/2016 Evaluation to Full Version? | Windows OS Hub (archive.org)