We help IT Professionals succeed at work.

Prevent Auto Reboot on BSOD from CMD

1,924 Views
Last Modified: 2012-05-06
Is it possible to disable auto reboot form a command prompt?

I have a vista business machine (32bit) that is BSOD now after a batch of updates.

SAFE MODE BSODs.
NORMAL MODE BSODs.

Thanks in advance,
Comment
Watch Question

LeeTutorretired
CERTIFIED EXPERT
Top Expert 2009

Commented:
If you cannot get into regular Safe mode, then try Safe Mode with Command Prompt.  If this works, then you can use the REG command to turn off the auto reboot on error.

At the Safe Mode Command Prompt log on as administrator. Type the following at the command prompt:
REG /QUERY HKLM\System\CurrentControlSet\Control\Crashcontrol /v Autoreboot

You should get a value of either 1 or 0. 1=true; 0=false, therefore if it is 1 then do the following:
REG /DELETE HKLM\System\CurrentControlSet\Control\Crashcontrol /v AutoReboot
REG /ADD HKLM\System\CurrentControlSet\Control\CrashContron /v AutoReboot /t REG_DWORD /d 0

This will turn off the automatic restart on error option, so that you will be able to see the error message when you get the BSOD (Blue Screen of Death).

Author

Commented:
Nope, can't get to any version of safe mode. I am will try from the vista CD now.
Yancey LandrumTechnical Team Lead

Commented:
You should be able to disable it at the boot screen (F8). I think the option is called "Disable Restart on System Failure" or something like that.

You can also use the command-line registry tool (reg.exe) to export the following key:

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CrashControl]
"AutoReboot"=dword:00000000

Modify it to the value above and then re-import it.

Author

Commented:
The value returned was 0x0. I deleted it and then added the value again.

The system still automattically reboots on bluescreen.
retired
CERTIFIED EXPERT
Top Expert 2009
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION

Author

Commented:
I will give this a try in a few. I managed to roll back some updates and set it from windows.
To abort a shutdown use
shutdown /a
from run or cmd
CERTIFIED EXPERT
Distinguished Expert 2019

Commented:
You still did not report if the F8-option "Disable automatic Restart on System Failure" worked - it should do.
Yancey LandrumTechnical Team Lead

Commented:
LeeTutor, you are right about the recovery environment of course; I should have mentioned that.  Also, just using Regedit itself in the recovery environment to load the HKLM hive and modify it will be easier than using REG.EXE (although it can all be done with reg.exe as well).

The asker had specified doing it from a command line so I didn't even go there.

Author

Commented:
Thank you.

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions