
Generally the hardware faulty can cause your laptop randomly turning off, and you can remove the connected hardware from your laptop and see if it’s where the problem lies in, especially when you recently added new hardware device to your laptop.

If your laptop always gets overheated, you should consider invest a laptop cooler or cooling pad, and you can buy one from the Internet. In addition, if you’re confident with your computer skills, you can disassemble your laptop and clean your fan. So you should keep your laptop in the rather open area, where there is less debris or dust, and let the fan works properly. But if the cooling fan doesn’t work properly, your laptop can’t exhaust heat and will get turned off randomly. The internal hardware components of your laptop generate heat, and the cooling fan helps reduce the heat. So whenever this issue happens in your computer or laptop, you should first check and fix the overheating problem. If your laptop is overheating, then it’s very likely your laptop may randomly shut down without a clue.

Fix 1: Troubleshoot the overheating issue Note: the screenshots below come from Windows 10, and the fixes also work on Windows 8 and Windows 7.
