Chosen Solution

I have an older flat panel imac it turns on to the apple but before it can fully boot up it turns it self off.

Open it up and observe the diagnostic lights to the right of the RAM slots and let us know you results when it shuts off.