Windows will automatically restart on a system failure like a crash or Blue Screen of Death (BSOD).
If that is happening and if you want to figure out and fix the problem you need to make a few adjustments, supply more information about your system, accumulate and upload some recent crash dump files for analysis.
Here's how to get started:
On your Desktop right click Computer, Properties, Advanced system settings and make it look like this:
There is no need to create the Minidump folder as Windows will create one if it needs to.
Then click OK enough times to close all the dialog boxes and restart your system for the changes to take effect. After rebooting you can go back and check the settings again to be sure the adjustments "stick".
In your next reply you can supply more information that will reduce the number of question asking message cycles if you will do this:
If your system is a Dell what is the Service Tag number?
If your system is HP what is the serial number?
Describe your antivirus/antimalware environment.
Can you make the system crash at will - if there is something in particular you do that makes the system crash like watching videos, listening to music, etc. tell us what that something is that causes the system to crash every time.
Click the Start button/orb in the lower-left corner of your screen. Or, press the Windows logo key on your keyboard.
In the box enter:
Select/click msinfo32.exe and the System Information dialog box will open.
Click on System Summary, click Edit, Select All (Ctrl-A), Copy (Ctrl-C) and then paste (Ctrl-V) the information back here in your next reply.
For video driver information, expand the Components, click Display, click Edit, Select All (Ctrl-A), Copy (Ctrl-C) and then paste (Ctrl-V) the information back here.
There will be some personal information (like System Name and User Name), and whatever appears to be private information to you, just delete it from the pasted information.
Then do whatever you have to do get the system to crash again and you should have a crash dump file to upload for analysis.
Sometimes more than one crash dump is needed to pinpoint the cause so send some of the most recent ones.