Power was restored Friday to more than 20,000 residents in Wake and Johnston counties after an outage at a substation.