Assuming you have purchased the license via the Microsoft Store or have an OEM motherboard, follow this guide: