Computers draw electricity from a range of computer supplies, such as built-in batteries or power cords and adapters. Using the right equipment and power sources can also help protect devices from surges, spikes, and short circuits. Keeping crucial equipment powered is also an important step in preventing data loss.