Open CMD in elevated mode (run as administrator)
Type the following command:
slmgr.vbs -ipk PRODUCT KEY
slmgr.vbs –ato
ie:
Disclaimer The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.