My process was, install Win7. Do the free upgrade to 10. Create Win10 fresh install media. Wipe and fresh install 10. THen Win10 will automatically know the correct key for your hardware.
If you change hardware, you will need to call MS to get a new key from them, which they will provide...