Or even easier....
Create a NEW Win 10 install, here:
https://www.microsoft.com/en-us/software-download/windows10
This will include all of the current updates, so that you don't have to do it.
During the install, when it asks for the license key., at the bottom of that window is a link for :
"I don't have a product key"
Or, use the license key that it came with when you purchased it.
Click that and proceed.
It will be unactivated, because of the new hardware.
When you try to activate it,
then you go through the activation troubleshooter, telling it about the linkage to your MS account.