My computer has been randomly restarting itself for the last couple of days. Sometimes it would stay on for hours before restarting, other times it wouldn't even get into Windows before restarting. Since yesterday it won't start at all. When I press the power button the fans starts spinning and the lights go on for perhaps half a second before shutting down again. I have tried taking out the graphic card and the rams with the problem persisting. The strange thing is that if I hold down both the start button and the restart button at the same time then the computer starts but will display nothing on the monitor.
How can I pinpoint the problem?