Windows – How to enable system restart on BSOD from commandline

bsodhyper-vwindowswindows-server-2003

I got an Hyper-v core box and I need to turn automatic restart on. How can I do that?

Best Answer

The configuration is held in the following registry key:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CrashControl\AutoReboot

With a setting of either 1 (AutoReboot on) or 0 (AutoReboot off)

The following command should enable it:

reg add HKLM\System\CurrentControlSet\Control\CrashControl\ /v AutoReboot /t REG_DWORD /d 1