excerpt :
In Windows 10 (Version 1607 or later), you can link your Microsoft account to the Windows 10 digital license on your device. This can help you reactivate Windows using the Activation troubleshooter if you make a significant hardware change later, such as replacing the motherboard.
P.S. You might end up having to talk to Customer Support.
The link to Customer Support is at the end of the article.