Chosen Solution

I got an old iMac 2008 from my brother-in-law. It had been sitting in his house for years without being used. He said it was running very slowly so he upgraded. When I plugged in the machine and turned it on, it made 2 loud popping and snapping sounds and then went quiet. After some research I am trying to fix the power supply. Any ideas on how to go about doing this? I am planning on replacing the damaged (bulging) capacitors. I want to check the power supply before I put it back in the machine. I don’t want to rebuild the computer and find out that the power supply is still bad. Any ideas on how to test the power supply? Thanks Update (07/26/2017)

Any chance this could be fixed?

That’s what the diagnostic LEDs are for: iMac Intel 24" EMC 2134 and 2211 Diagnostic LED’s UPDATE 7/29/17 This should be Apple part#661-4478 about $100 Please check your exact model before ordering http://www.macpalace.com/661-4478-power-http://www.ebay.com/itm/250W-Power-Suppl