This trick should work for all versions of Windows as far as we know.
You can always resort to the temporary disabling measures instead.
If you have updated drivers and removed any hardware that could be causing this issue and the random reboots continue to occur, it's possible that the memory is bad in the computer.
Finally, hardware devices that are not installed properly in the computer can also cause random reboots.
You’ll still get the prompt, but it won’t force you to shut down.For all other fans in the computer, you need to open the computer and verify all fans are working (e.g., processor fan, video card fan, and case fans).A temperature gun, like the one shown in the picture, can also be used to help gauge how hot the hardware components or integrated circuits are inside the computer.If you have heard any abnormal noises coming from your computer recently, it could be an sign that a fan is failing which may cause hardware components to overheat.First, verify the fan on the power supply is working by examining the back of the computer and seeing if the fan is moving in general, as well as moving fast and smoothly (e.g., not wobbling or scraping against the insides of the power supply).Some computer viruses, such as the blaster virus, are designed to reboot your computer without warning.Usually these viruses make the computer reboot every 5, 10, 15 or 30 minutes after the computer has started up.Some of the steps below require you to open your computer.While working inside the computer, be cautious of ESD.Although this may be nice for errors that do not occur often, users who have a re-occurring error may want to identify the error to troubleshoot it.Below are the steps on how this feature can be disabled and enabled in Windows XP, Vista, 7, and 8.