Malware, improper installs, and poor maintenance are usually the major causes of these file errors.
Windows XP and VISTA have an application that allows you to auto-repair damaged files which is known as SFC SCAN command. This administrative tool allows Windows to try and repair itself. It will scan all system files and replace any that are damaged or missing. If repairs are needed, you will need to supply the Windows CD so that the functional files can replace the ones that are causing your computer to constantly restart itself.
Steps to be followed:
- Click "Start"--> Click Run
- Type Command Prompt" or type cmd
- Type "sfc/scannow"
- The tool will scan for damaged files. When prompted provide the "Windows original disk" for repair.