Ever left your computer alone for 5 minutes to come back and realize it crashed and restarted itself?
Here’s a quick guide on how to keep a log of your shutdowns. Logging will give you a time and reason for your crash/unplanned shutdown so hopefully you can fix the problem.
Step 1: Go to the start menu, click Run and then type in ‘regedit’. You should see a screen that looks like this:

Step 2: Find your way to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Reliability. The complete path is located in the bottom left corner of the window.
Step 3: Right click on ‘ShutdownReasonUI’ (if you don’t have that file go to step 3.1) then click Modify. You should see something like this: