Run the following command from an elevated command prompt:
slmgr /ipk
See the Automatic VM Activation article for the keys to use for your image.