BRUNSWICK, Maine — Nearly 8,000 Central Maine Power customers were without electricity for two hours early Friday morning after lightning struck a transmission line.

Just before 4 a.m., 7,675 customers in Brunswick, Freeport, Harpswell and Topsham lost power following the strike to the line, which feeds a substation in Topsham, CMP spokeswoman Gail Rice said.

Power was restored just before 6 a.m.

Separately, an outage Thursday afternoon in Skowhegan affected another 2,564 CMP customers in Skowhegan, Fairfield, Norridgewock and Smithfield, Rice said.

The outage, from about 1 p.m. to 2:30 p.m., was caused by a failed insulator in the Skowhegan South Side Substation, she said.