open cmd command prompt
First connect to the kms server
slmgr -skms skms.netnr.eu.org
Then enter the product key xxxxx-xxxxx-xxxxx-xxxxx-xxxxx corresponding to the system version
slmgr -ipk xxxxx-xxxxx-xxxxx-xxxxx-xxxxx
Finally activate
slmgr /ato