Have you ever installed a Windows server to do some testing and don’t register it because it is a lab environment? Here is a quick and easy way to re-arm the licenses.
NOTE: This can only be run 5 times on the server and then you are….. as THEY say….. Out of Gas.
Run Command Prompt with Administrator Privileges and run following command:
slmgr.vbs -rearm