A Windows license is associated with your device hardware. If you make significant hardware changes, such as replacing your motherboard, Windows won’t be able to find a matching license the next time you start your device. If Windows was preinstalled on the device and you have made a change such as replacing the motherboard, you’ll need a new license.
To purchase a new Windows license, Start > Settings > Update & Security > Activation , and then select Go to Microsoft Store.
If you have a Windows product key you used on your device before the hardware change, enter it by selecting Start > Settings > Update & Security > Activation , and then selecting Change product key.
Additionally, Microsoft provides an exception path for transferring a Windows License after a hardware change. You’ll need to be signed in to the same Microsoft account before making the hardware change and to use the exception path.