Hundreds of homes were without power for almost 24 hours following lightning strikes on Saturday.
Energy firm SSE said it had now reconnected power to all of the homes - 200 in Aberdeen and 175 in Dundee.
Two homes in Collieston, Aberdeenshire, were also struck during the storm, causing small fires.
In Gatehouse of Fleet, Dumfries and Galloway, firefighters were called out after lightning hit an overhead line feeding an electricity substation.
Scottish Power said the strike led to a short term loss of power to some nearby homes.
Six homes in the Newton Stewart and Gatehouse of Fleet areas were also struck by lightning.
#SFRS have attended multiple incidents in Newton Stewart and Gatehouse area due to lightening strikes, including a strike at an electrical sub station. @scotfire_DG a busy few hours in the South West of Scotland. Retained Crews protecting local communities pic.twitter.com/P5uWV8FPGR— Ian Anderson (@iananderson110) June 29, 2019
Ian Anderson, Scottish Fire and Rescue Service's Dumfries and Galloway station manager, told the BBC Scotland news website: "There was a 90 minute period from about 15:30 where we were called out to five or six houses hit by lightning.
"Their houses smelled of burning and their sockets were black.
"If a property sustains a lightning strike and it's bad enough to burn sockets then we would ask people to call the fire service.
"If your house is hit by lightning you will hear a crack and some of the items in your house might fail."
Dramatic images of the storm in the west and north-east of Scotland have been sent to the BBC Scotland website.
BBC Weather Watchers also reported large hailstones during a thunder storm in Aberdeenshire.
And in Edinburgh drivers said the torrential rain lead to sudden flooding and spray, causing difficult driving conditions on the city bypass.
Lightning had been forecast in western and central areas on Saturday afternoon, with experts predicting it would move east in the evening.
The Met Office issued two weather warnings - one for lightning and another for thunder.
It came a day after a temperature of 30C (86F) was recorded in the Highlands on Friday.
But in southern England temperatures soared to 33.6C (92F) on Saturday, making it the hottest day of the year so far.
Thunderstorms are becoming more widespread across western Scotland now. They may increase in severity through the rest of the day.— BBC Weather (@bbcweather) June 29, 2019
Frequent lightning ...hail ...flash flooding all possible
Latest weather warnings > https://t.co/gPSh88Wa42