If you move Windows you have to deal with installing drivers for the new PC. It's not automatic. But do read this article: https://www.minitool.com/backup-tips/upgrade-motherboard-without-reinstalling-windows.html
I have a desktop that i put a laptop hard drive in and it worked. it has windows 10 and i was wondering if there were any drivers i could download to make the computer realize its not a laptop so it would run smoother.
the computer has an asrock 970 extreme4 motherboard and an amd 6300 processor.