A windows 7 license is needed to use windows 7, the licenses to windows 7 are tied to the motherboards so if you have just built your desktop your motherboard won't have a license. So no, buying a hdd with windows installed on it will not work, you need to buy the os separately and then install it on the hard drive.