Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

share|improve this question
add comment

1 Answer

up vote 6 down vote accepted

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
share|improve this answer
4  
I would add to this that if you're having crashes often enough that you want to turn this on you have more serious problems than the fact that your system isn't rebooting itself after a crash. Find and fix the problem that is causing your crash! –  voretaq7 Nov 3 '11 at 16:35
    
I need to move guest OSes from a distance. Then I'll take care about BSOD. –  Nime Cloud Nov 3 '11 at 17:19
    
Look in the BIOS settings as well - your server needs to know to turn on after a power failure. –  dunxd Nov 3 '11 at 21:26
    
It's "Always ON" & tested. Thanks. –  Nime Cloud Nov 4 '11 at 7:15
    
@newmanth - Good catch, thanks. That was a Google job! –  Dan Nov 19 '11 at 20:03
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.