Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question
up vote 7 down vote accepted

The configuration is held in the following registry key:


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
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

Your Answer


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.