It depends if the operating system was OEM or full purchase. An oem Windows will be tied to that motherboard, and will not activate with that key. A full retail version will. If the o.s. was supplied with the computer, it is almost certainly an oem type, and you will not be able to do this.