If you purchased the license key from a third-party retailer, the troubleshooter for activation typically is not applicable.
Please type "cmd" in the search on the taskbar. Don't press the enter key yet. Instead, choose "run as administrator" to launch Command Prompt.
If this is a true retail key -
Run these commands, one at a time, to remove the license completely first.
slmgr /upk
slmgr /cpky
After that, wait an hour or two. Then launch Command Prompt in admin mode again and run this command:
slmgr /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
Replace the XXX with your actual 25-digit license key.
After that, run this command
slmgr /ato
Now, check to see if it activates.