Changing the CPU is usually trivial (but may require a BIOS flash). Changing the motherboard is usually a sign that it's time to reinstall Windows.