Don’t panic, randomly restating pc is not an uncommon case, you are not the only ones that are affected by it. After making sure that is not the Windows Update doing the restarting, you may want to read ahead.
there are 2 main reasons why your pc may randomly restarts:-
1. Software failure
2. Hardware Failure
software failure may occur when a software becomes corrupted or is not compatible with your system. Usually it is accompanied with the dreaded BSOD (Blue Screen Of Death), if it is accompanied with BSOD then you are lucky since you identify the exact software that is confusing your system, and doing a complete reinstall of such software or just updating it or even just removing it if you deem necessary.
it may also occurs when you stressed you PC too far, like playing games or even surfing the internet, it is caused when your system memory is unable to accept new data so it simply restarts itself to clear some memory, this can be fix by closing unused background progresses.
and it may also occurs when a virus keeps on killing your core system progresses which can be fix by running an antivirus scan in safe mode ( F8 during booting the PC)
hardware failure is the more common cause for randomly restarting PCs, it may happen when your system is literally too dirty to work, this can be fix by dismantling the PC and wiping any dirt of it, the dirt may restrict air flow which may cause electrical disturbance. (did i say wipe? i meant vacuum)
This can also happen when the temperature of your PC rises more than it’s working temperature, when the temperature rises, the internal electrical resistance of say, your CPU also increases. This may cause the CPU to fail when it does not receive the power it needs to work. To fix this, you need to make sure there is a good air flow for your system, and to be sure, use the PC in an air conditioned room
And it can also happen when one of the components in your PC is failing, like failing GPU, CPU, Hard drive and even the Power Supply Unit. This can only be fix by replacing the failing component, but when it’s the hard drive that is failing, be sure to backup all the data inside it before it fails for good.
– be sure the software you are installing are compatible with your current system
– read the known bugs and errors for the software you are about to install
– be sure to update and scan your system periodically, even if you think you don’t really need it
– be sure to close any programs that are not currently used to save memory
– be sure to clean the components of your system, one tiny dirt at the right spot is all it needs to disable your system
– it may just be a system update, that initiates an auto restart.
– if all fails, call a technician, sometimes it’s not your fault, sometimes it’s the manufacturers fault