This Straight Dope Staff Report answers the question, When the zombies take over, how long till the electricity fails?:
Bottom line? My guess is that within 4-6 hours there would be scattered blackouts and brownouts in numerous areas, within 12 hours much of the system would be unstable, and within 24 hours most portions of the United States and Canada, aside from a rare island of service in a rural area near a hydroelectric source, would be without power. Some installations served by wind farms and solar might continue, but they would be very small. By the end of a week, I’d be surprised if more than a few abandoned sites were still supplying power.
That’s if society collapses more-or-less instantaneously. With a little warning, the various power plants could last quite a while:
Now, let’s address a scenario where the zombification process is gradual. If the operators and utilities had sufficient advance warning they could take measures to keep the power going for a while. The first thing would be to isolate key portions of the grid, reducing the interties and connections, and then cease power delivery altogether to areas of highest zombie density. After all, it’s not like the zombies need light to read or electricity to play Everquest. Whole blocks and zones would be purposely cut off to reduce the potential drains (and to cope with downed lines from zombies climbing poles or driving trucks into transformers). Operators would work to create islands of power plants wherever possible, so if a plant were overrun by zombies and went down it wouldn’t drag others down with it. In cooperation with regional reliability coordinators, the plant operators would improve plant reliability by disabling or eliminating non-critical alarm systems that might otherwise shut down a power plant, and ignoring many safety and emissions issues.Fuel supply would eventually be a problem. Hydro plants would fare best, essentially having an unlimited fuel supply given normal rainfall, and could operate until some essential component failed or wore out. Nuclear plants could run for perhaps a year or more before they would need refueling. Refueling is a tricky operation requiring many specialized personnel, and it’s doubtful that a nuclear plant could effectively refuel if 90% of the nuclear technicians and engineers in the country were running around glassy-eyed in the parking lot. Coal power plants on average have maybe 45-60 days’ worth of coal on hand. If the power output of the plant were reduced, this could be stretched for six months or more, but eventually it would run out unless deliveries could be maintained. There are a few mine-mouth coal power plants in the U.S. that could conceivably run for years, provided enough miners and operators remained un-zombified. Natural gas plants might be the most vulnerable, since maintaining the gas wells, balancing the gas flow, and otherwise keeping the pipeline system intact requires considerable effort. In addition, most power plants have little or no gas storage available on-site, so a zombie situation could put natural gas plants in a real bind.
So, should we all switch to solar?
As to your final question, I can suggest a better tactic than relying on solar. Go to the abandoned hardware stores, load up a flatbed trailer with gasoline generators, and take them and a few dozen tanker trucks of gasoline to your house. You could have power for a long time, possibly years or more, until the zombies finally come for you.