FREEPORT, Maine — After a late winter storm that dropped as much as 21 inches of snow in some parts of the state, crews will work throughout the day Friday to restore electricity to those in the more remote areas of the state.

After a high of nearly 30,000 outages — many in York County — Central Maine Power is reporting just more than 13,000 customers without power as of 7 a.m. Friday, with the majority in Lincoln (6,409) and York (5,324) counties.

CMP estimates most accounts will be restored by 8 p.m. Friday, spokeswoman Gail Rice said Friday morning.

“The weather didn’t cooperate at all on Thursday,” Rice said. “We continued to get a lot of snowfall, sticking to tree limbs and wires and branches. That was especially true in the midcoast area — Lincoln and Sagadahoc counties and parts of Cumberland.”

Rice said one line in Harpswell had to be restored three times Thursday.

At 4 a.m., Emera Maine reported 1,023 customers in the dark, with 949 of them in Hancock County.

Emera said crews would travel Friday morning to island communities to begin restoring power there. According to the website, power was expected to return to Brooksville by 9 a.m. Friday; to Cherryfield by noon Friday; to Cranberry Isle, Cranberry Isles, Great Cranberry Island, Islesford, Bernard, Frenchboro and Swans Island by 2:30 p.m. Friday; and to Bass Harbor, Tremont and Machiasport by 5 p.m. Friday.

The National Weather Service in Gray said 21.5 inches of snow was reported Thursday in the Oxford County town of Hartford, 19 inches in Sanford, 17.8 at the NWS office in Gray, and 17.1 in Sandy Brook in York County.

The Portland Jetport received 15.7 inches, with Lewiston at 15 inches.

The National Weather Service in Caribou reported 7.9 inches of snow as of about midnight Thursday.

Hazardous road conditions caused by the storm forced dozens of schools, businesses and government offices to close or delay openings across Maine on Thursday. Gov. Paul LePage closed all state offices and encouraged residents to stay off roads “unless it is an absolute emergency.”

State offices and most schools reopened Friday.

Follow the Bangor Daily News on Facebook for the latest Maine news.