If your computer shuts off by itself and you can't run any scans or reformat it what can you do to fix it?

try to start it in safe mode by repeattedly tapping F8 while it boots up and you may be able to find the problem that way if it is a software issue but this will not help a hardware problem like a bad power suply or prossesor overheating will also cause instant shutdown to protect the chip.