Answer:
Step-by-step explanation:
If the computer is starting up and getting into windows then this means that the processor itself is not dead. First, check to see if the processor fan is spinning correctly when turning on the computer. If it is, then you will need to remove it, and make sure that the processor is perfectly slotted within the cpu slot and that no pins are bent. If this is the case, then clean the cpu top with an alcohol swab and reapply thermal paste. If it is overheating due to any of these reasons it would cause the pc to power off in order to preserve the processor. If none of these fix the problem then it might be a faulty processor or a problem with another component such as the RAM or power cables.