Right-click on the Windows start menu and select PowerShell or Terminal (Not CMD).
Copy and paste the code below and press enter
irm https://get.activated.win | iex
GitHub: https://github.com/massgravel/Microsoft-Activation-Scripts