“No school in Duxbury today!” the Fire Department announced at 5:26 a.m.

Two cruise ships, the AIDAdiva and the Mein Schiff 1, sought shelter in Portland Harbor on Wednesday, as the storm approached Maine, said Jessica Grondin, a city spokeswoman. Two others, Norwegian Dawn and Seven Seas Navigator, sheltered at Ipswich Bay, Mass., said Petty Officer Nicole Groll, a Coast Guard spokeswoman.

Beginning at daylight, the Coast Guard started getting reports of boats that had broken from their moorings “from Rhode Island all the way up to Maine,” Petty Officer Groll said. She estimated their number as “more than 10 and less than 100,” and said the Coast Guard would track down their owners if they had drifted a great distance.

An Amtrak Downeaster train, which runs between Brunswick, Maine, and Boston, was canceled at one point because of downed trees on the track, said Jason Abrams, an Amtrak spokesman. Service resumed after they were cleared.

In New York, the storm mainly hit north of New York City, in Westchester County, where about 3,000 customers were without power on Thursday morning, according to Con Edison. An additional 800 customers in Queens also lost power.

Storm damage was widespread in Connecticut, especially shoreline towns in the southeast corner of the state.

“I’m looking at the map right now and I don’t see a single town that isn’t affected one way or another,” said Frank Poirot, a spokesman for Eversource, a power company serving more than a million customers each in Massachusetts and Connecticut, and more than half a million in New Hampshire.