Do this before moving the install:
Reactivating win 10 on new hardware
I would fresh install as there aren't many changes bigger than swapping CPU & motherboard. Best to start from scratch and have all new drivers. Less headaches
Use this: download the
Windows 10 media creation tool and use it to make a win 10 installer on USB
Follow this:
https://www.tenforums.com/tutorials/1950-clean-install-windows-10-a.html
On the screen where you choose where to install win 10, if it gives you an error about GPT drives, delete all the partitions on the hdd and press next. If it still gives error, cancel out of the installer and restart PC and start installer again, it will accept next on that screen this time (some PC just need a restart here)
when you reach the screen asking for licence, click "I don't have a key" and win 10 will continue to install and then follow the 2nd part of the top link and activate win 10 on new hardware