Open System in Control Panel.
On the Advanced tab, under Startup and Recovery, click Settings.
Under System Failure, select the check boxes that correspond to the actions you want Windows to perform if a Stop error occurs:
1)Write an event to the system log specifies that event information will be recorded in the system log.
2)Send an administrative alert specifies that your system administrator will be notified.
3)Automatically reboot specifies that Windows will automatically restart your computer.
Select 1), then an error message will be generated instead of a restart. You can view this, and hopefully the cause, in Event Viewer.