Pretty odd times.
I gave up with mine, couldn't get it to work for love nor money, all I can guess is the mobo is dead somehow, sata/ide controller... so sold the base unit for 30 quid as couldn't be bothered to strip it for bits.
Oh well, thats the first one I've never been able to suss out eventually!
I blame it on the emachines logo lol, was an MSI motherboard - certainly odd behaviour, I got it to do a full system restore from the stored hard drive partition and it completed fully which was weird so thought woop sorted it, it finished its install and all the drivers/programs it came bundled with and then I restarted it and boom, kept turning off again when loading windows. I hadn't put it on the net.
The powering off issue occured with new RAM, PSU, Hard Drive, different DVD drives, machine stripped down as much as poss with no hard drive connected and any CD drive be it IDE or SATA, as soon as it got to Windows 7 setup screen it turned off.
Couldn't understand why it ram memtest and seatools for hours with no issues though.
Win some lose some.