To purchase a Windows 10 license after recovering the drive:
- Open Start.
- Go to Settings > Update & Security > Activation.
- Select Go to Store.
- In Microsoft Store, follow the prompts to buy a Windows 10 digital license.
If Windows was previously activated on that desktop and the license was linked to a Microsoft account, signing in with that same account may allow activation without entering a product key.
If the hardware was changed significantly, such as the motherboard, Windows may not find the previous license. In that case:
- Go to Start > Settings > Update & Security > Activation.
- Select Troubleshoot.
- If shown, select the option to reactivate after a hardware change.
A valid product key can also be entered from Settings > Update & Security > Activation > Change product key.
References: