Narrative:

Departing under IFR; I experienced a generator failure during climbout. I attempted to reset the generator and get it back online with no success. While troubleshooting my first generator; I received a failure annunciation for my second generator. I was unable to get either generator back online; so I decided to divert to the nearest suitable airport on battery power. A normal landing followed with no other abnormalities.

Google
 

Original NASA ASRS Text

Title: An SA227 pilot diverted to the nearest suitable airport on battery power after suffering the failure of both AC generators.

Narrative: Departing under IFR; I experienced a generator failure during climbout. I attempted to reset the generator and get it back online with no success. While troubleshooting my first generator; I received a failure annunciation for my second generator. I was unable to get either generator back online; so I decided to divert to the nearest suitable airport on battery power. A normal landing followed with no other abnormalities.

Data retrieved from NASA's ASRS site as of July 2013 and automatically converted to unabbreviated mixed upper/lowercase text. This report is for informational purposes with no guarantee of accuracy. See NASA's ASRS site for official report.