When it comes to repairing a computer, safety should always be your first priority. To avoid electric shock and prevent damage to the equipment, it is essential to turn off and unplug the device before starting any repairs. As an extra precaution, it is also recommended to disconnect the computer from the wall or power strip. This is because the quality of electrical energy can vary depending on where you live, the individual circuit it is connected to, and even from one moment to the next as other loads in the circuit come and go.
Sporadic issues such as spontaneous restarts are often caused by a poor-quality power supply. Before you start disassembling the system, make sure that the problem is not due to a weak electrical supply. At a minimum, use a surge protector to soften incoming energy. For optimal protection, connect the system to an Uninterruptible Power Supply (UPS).
If you don't have a UPS, try connecting the system to a power receptacle on a different circuit. If you find yourself in need of professional help, there are times when you may need to send your Windows PC or laptop to a computer technician or repair shop.