The scenario is for all you Resellers and OEM Channels who may sell Volume License. This is a real pain to find, so I thought I would make a quick post. The wording of the existing documentation is vague and it is easy to fail to get your machine licensed. The situation is your media did not arrive and you have a customer install of Server 2012 R2. You use the eval edition to make the install (technically a EULA violation from what I am gathering) and then you try to activate your Volume license and it fails.
The error will come back as:
Never fear, DISM is here:
1. DISM /online /Get-CurrentEdition
2. DISM /online /Set-Edition:StandardEdition /AcceptEula /ProductKey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
The Current edition will come back as a Standard edition Eval. This command changes the version to Standard and then puts your key in.
If your Trial version expired, you will have to re-arm the machine with Slmgr /rearm (or -rearm)
I hope this helps. It sure helped me today 🙂