You can't take a hard drive that had windows installed on it from a previous machine and just throw it in a new machine and expect it to work properly as the motherboard has all new hardware on it. You will have to do a repair install at the least and possibly a fresh install. You will most likely have an issue getting the install reactivated though as its on a different computer.
You can't take a hard drive that had windows installed on it from a previous machine and just throw it in a new machine and expect it to work properly as the motherboard has all new hardware on it.