One piece of advice. MS changed the procedure about a year ago. if you
have an MS account, then the registration is linked. On changing any hardware, including the motherboard, it will be automatically reactivated through your (MS) account
I posted on this about a year ago, I think, but cannot find the post, but here is a link to read
https://www.windowscentral.com/how-re-activate-windows-10-after-hardware-change
One of the very many quirks of Windows 10/MS, is, if you do
not have an MS account, you may have to do as Wolfie says. Sometimes, however, it does seem to slip through.,