check system log for error reports.
select Start > Control Panel > Settings > System
(in the Classic-style Start menu, Control Panel is under Settings).
Click Advanced > System And Recovery > Settings.
In the System Failure section, clear the Automatically Restart check box, then click OK.