The Blue Screen which shows momentarily, gives an error number which will point toward the cause of the shutdown. However Windows is usually set to restart automatically so the BSOD is gone too quickly.
There is a user setting which will hold the blue screen until you push the reset button, and this will give you a chance to read or even photograph the screen.
Right-click your Computer icon, and go to Properties - you’ll be in the About section.
Go down to Related Settings and click on Advanced System Settings
Select the Advanced tab, and go down to Start-up and Recovery. Click the Settings button.
In the middle of the Start-up and Recovery page there’s a section called System Failure
Remove the check mark from “Automatically restart”, click OK, and go back to your usual screen.
Now when your computer shows the blue screen it will hold there until you press the computer’s reset button. Record the error number shown, and bring it back here to the forum for advice.
If you want your computer to automatically restart once more, just follow the same instructions, put the check back in the box and click OK again.