Do solar panels work when powers out?

The answer depends upon what type of solar system they decide to purchase or install. If you have Solar panels installed on your roof or property in Off-Grid mode, you can save the generated power through batteries, Whereas in On-Grid mode since it is connected directly to the grid the inverter gets switched off and solar power will not be available.