{"id":96936,"date":"2017-09-05T07:00:00","date_gmt":"2017-09-05T21:00:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/oldnewthing\/?p=96936"},"modified":"2019-03-13T01:16:27","modified_gmt":"2019-03-13T08:16:27","slug":"20170905-00","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/oldnewthing\/20170905-00\/?p=96936","title":{"rendered":"Why did my systems reboot into the Recovery Environment and how do I prevent that from happening in the future?"},"content":{"rendered":"<p>Earlier this year, a customer reported that they had a cluster of systems running a mix of Windows Server 2003&sup1; and Windows Server 2008 R2 Service Pack 1. The cluster node crashed, causing the machines hosted on it to fail over to another node. On the new node, the Windows Server 2003 system showed an error and restarted, but the Windows Server 2008 R2 systems showed a system recovery dialog. <\/p>\n<div STYLE=\"color: black;background-color: #d4d0c8;font-family: Segoe UI, Verdana, MS Sans Serif, Arial, sans-serif;font-size: 9pt;width: 30pc;border: 1px #C0C0C0 solid;border-right: 2px #808080 ridge;border-bottom: 2px #808080 ridge\">\n<div STYLE=\"color: white;background-color: #0a246a;padding: 2px 4px\">   <b>System Recovery Options<\/b>  <\/div>\n<div STYLE=\"padding: 10px 4px\">\n<div STYLE=\"font-size: 11pt\"><b>Choose a recovery tool<\/b><\/div>\n<p STYLE=\"color: #000080\"><u><b>Startup Repair<\/b><\/u><\/p>\n<div>   Automatically fix problems that are preventing Windows from starting   <\/div>\n<p STYLE=\"color: #000080\"><u><b>System Restore<\/b><\/u><\/p>\n<div>   Restore Windows to an earlier point in time   <\/div>\n<p STYLE=\"color: #000080\"><u><b>System Image Recovery<\/b><\/u><\/p>\n<div>   Recover your computer using a system image you created earlier   <\/div>\n<p STYLE=\"color: #000080\"><u><b>Windows Memory Diagnostic<\/b><\/u><\/p>\n<div>   Check your computer for memory hardware errors   <\/div>\n<p STYLE=\"color: #000080\"><u><b>Command Prompt<\/b><\/u><\/p>\n<div>   Open a command prompt window   <\/div>\n<\/p><\/div>\n<p STYLE=\"text-align: right\">   <span STYLE=\"border: 1px white solid;border-bottom: 2px #808080 ridge;border-right: 2px #808080 ridge;width: 7em;text-align: center;padding: 2px 0px\">      Shut Down     <\/span>    <\/span>    <span STYLE=\"border: 1px white solid;border-bottom: 2px #808080 ridge;border-right: 2px #808080 ridge;width: 7em;text-align: center;padding: 2px 0px;margin: 0em 1em 1em 1em\">      Restart     <\/span>    <\/span>   <\/p>\n<\/p><\/div>\n<p>The customer had to connect to each machine and click the &#8220;Restart&#8221; button in the recovery dialog. This was a tedious operation because they had so many systems. <\/p>\n<p>The Recovery Environment team explained that the system should not have entered recovery after a single crash. It requires that the crash be followed by a failed boot as well. (You can read more about <a HREF=\"https:\/\/docs.microsoft.com\/en-us\/windows-hardware\/manufacture\/desktop\/windows-recovery-environment--windows-re--technical-reference#span-identrypointsintowinrespanspan-identrypointsintowinrespanspan-identrypointsintowinrespanentry-points-into-winre\">the conditions under which the Recovery Environment will start automatically<\/a>.) <\/p>\n<p>What probably happened is that the subsequent boot also failed, and that triggered the entry into the Recovery Environment. The customer was not sitting in front of the systems as they rebooted, so they didn&#8217;t notice this second reboot. <\/p>\n<p>If the customer wants to prevent the system from automatically entering the Recovery Environment, they can set the following entries in the BCD (Boot Configuration Data): <\/p>\n<pre>\nbcdedit \/set {default} recoveryenabled No\nbcdedit \/set {default} bootstatuspolicy IgnoreAllFailures\n<\/pre>\n<p>The <code>recovery<\/code><code>enabled<\/code> variable is set by default to <code>true<\/code>, and the <code>boot<\/code><code>status<\/code><code>policy<\/code> is not set by default. To return the system to its default configuration, use the commands <\/p>\n<pre>\nbcdedit \/set {default} recoveryenabled Yes\nbcdedit \/deletevalue {default} bootstatuspolicy\n<\/pre>\n<p>&sup1; Yes, the customer is still using Windows Server 2003 two years after it <a HREF=\"https:\/\/www.microsoft.com\/en-us\/cloud-platform\/windows-server-2003\">exited support<\/a>. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can disable it in the boot configuration.<\/p>\n","protected":false},"author":1069,"featured_media":111744,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[104],"class_list":["post-96936","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oldnewthing","tag-tipssupport"],"acf":[],"blog_post_summary":"<p>You can disable it in the boot configuration.<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/96936","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/users\/1069"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/comments?post=96936"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/96936\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media\/111744"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media?parent=96936"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/categories?post=96936"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/tags?post=96936"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}