{"id":565,"date":"2018-04-20T16:55:00","date_gmt":"2018-04-20T16:55:00","guid":{"rendered":"http:\/\/james-batchelor.com\/?p=565"},"modified":"2018-07-15T17:15:36","modified_gmt":"2018-07-15T17:15:36","slug":"windows-7-startup-repair-loop","status":"publish","type":"post","link":"https:\/\/james-batchelor.com\/index.php\/2018\/04\/20\/windows-7-startup-repair-loop\/","title":{"rendered":"Windows 7: Startup Repair Loop"},"content":{"rendered":"<p>An interesting call came in this week; I say interesting but in reality it is a call we all dread. A user that is reporting that the computer keeps displaying \u201cTrying to recover Windows\u201d followed by the inevitable \u201cUnable to recover Windows\u201d. Unable to remote on and look, there was no choice to bring it into the office.<\/p>\n<p>On first inspection it was indeed booting to the recovery console, and displaying recovery choices including 4 restore points. These were the first port of call but were all unsuccessful. This machine has been in use by the user for many years, and so had many years of settings and obscure software installed, so there was a lot to gain from repairing the issue instead of a full Windows re-install.<\/p>\n<p><!--more--><\/p>\n<p>A corrupt Windows install could be the result of a failing hard drive, S.M.A.R.T reporting on boot was giving a pass, so it may be worth rebuilding the Master Boot Record.<\/p>\n<h3>Repairing the MBR<\/h3>\n<p>So how to work on an operating system that refuses to load? The recovery DVD (Remember them) that came with this aging Fujitsu contains a heavily stripped down version of the Windows 7 operating system, giving you the basic tools to make changes to the system stored on the hard drive.<\/p>\n<p>Boot the PC from the DVD and you are greeted with the Windows 7 installation menu, click <em>Repair Your Computer<\/em> to load the recovery console.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-567\" src=\"https:\/\/james-batchelor.com\/wp-content\/uploads\/2018\/07\/win7loop-01.jpg\" alt=\"\" width=\"619\" height=\"459\" srcset=\"https:\/\/james-batchelor.com\/wp-content\/uploads\/2018\/07\/win7loop-01.jpg 619w, https:\/\/james-batchelor.com\/wp-content\/uploads\/2018\/07\/win7loop-01-300x222.jpg 300w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/p>\n<p>Select the OS on the drive, and click Next<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-568\" src=\"https:\/\/james-batchelor.com\/wp-content\/uploads\/2018\/07\/win7loop-02.png\" alt=\"\" width=\"389\" height=\"295\" srcset=\"https:\/\/james-batchelor.com\/wp-content\/uploads\/2018\/07\/win7loop-02.png 389w, https:\/\/james-batchelor.com\/wp-content\/uploads\/2018\/07\/win7loop-02-300x228.png 300w\" sizes=\"auto, (max-width: 389px) 85vw, 389px\" \/><\/p>\n<p>This will attempt to repair the PC again, and ultimately fail, next it will show you the\u00a0System Recovery Options<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-569\" src=\"https:\/\/james-batchelor.com\/wp-content\/uploads\/2018\/07\/win7loop-03.png\" alt=\"\" width=\"485\" height=\"363\" srcset=\"https:\/\/james-batchelor.com\/wp-content\/uploads\/2018\/07\/win7loop-03.png 485w, https:\/\/james-batchelor.com\/wp-content\/uploads\/2018\/07\/win7loop-03-300x225.png 300w\" sizes=\"auto, (max-width: 485px) 85vw, 485px\" \/><\/p>\n<p>Click to open <em>Command Prompt<\/em>. In this window we can execute the commands to rebuild the MBR:<\/p>\n<ol>\n<li><em>bootrec \/rebuildbcd<\/em><\/li>\n<li><em>bootrec \/fixmbr<\/em><\/li>\n<li><em>bootrec \/fixboot<\/em><\/li>\n<\/ol>\n<p>Restart the PC from the main menu and cross your fingers.<\/p>\n<h3>Looking Further<\/h3>\n<p>Unfortunately, this did not fix the issue, and it loaded the Startup Repair again. Looking deeper into the details of the failed repair, I find this:<\/p>\n<figure id=\"attachment_566\" aria-describedby=\"caption-attachment-566\" style=\"width: 600px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-566 size-full\" src=\"https:\/\/james-batchelor.com\/wp-content\/uploads\/2018\/07\/win7loop-00.jpg\" alt=\"\" width=\"600\" height=\"464\" srcset=\"https:\/\/james-batchelor.com\/wp-content\/uploads\/2018\/07\/win7loop-00.jpg 600w, https:\/\/james-batchelor.com\/wp-content\/uploads\/2018\/07\/win7loop-00-300x232.jpg 300w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><figcaption id=\"caption-attachment-566\" class=\"wp-caption-text\">Boot critical file C:\\Windows\\System32\\Drivers\\RapportKE64.sys is corrupt.<\/figcaption><\/figure>\n<p>What stands of here is the word Rapport, this may refer to a piece of security software by the same name. Whereas I don\u2019t use this software, I am familiar with this due to the well documented problems it causes many users, and have dealt with these many times.<\/p>\n<p>As it is a 3<sup>rd<\/sup> party program to Windows, it\u2019s likely that this is installed as a system service and set to start on boot. The next step is to disable this service, and get Windows to start.<\/p>\n<h3>Disabling a Service<\/h3>\n<p>As above, get the PC to boot from the Recovery DVD, and navigate to the System Recovery Options, and open the DOS window.<\/p>\n<p>Enter <em>regedit<\/em> to load the registry editor<\/p>\n<p>As the PC has booted from the DVD, the registry details displayed refer to the operating system loaded from the DVD, so we need to connect to the registry of the system\u2019s hard drive.<\/p>\n<p>Highlight HKEY_LOCAL_MACHINE on the left hand tree.<\/p>\n<p>Click <em>File<\/em> on the menu bar and then <em>Load Hive<\/em><\/p>\n<p>Navigate to C:\\Windows\\System32\\Config on the hard drive (Note the drive letter may be different from normal operation) and choose the <em>SYSTEM<\/em> file.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-570\" src=\"https:\/\/james-batchelor.com\/wp-content\/uploads\/2018\/07\/win7loop-04.png\" alt=\"\" width=\"563\" height=\"411\" srcset=\"https:\/\/james-batchelor.com\/wp-content\/uploads\/2018\/07\/win7loop-04.png 563w, https:\/\/james-batchelor.com\/wp-content\/uploads\/2018\/07\/win7loop-04-300x219.png 300w\" sizes=\"auto, (max-width: 563px) 85vw, 563px\" \/><\/p>\n<p>Give this registry an <strong>identifiable name<\/strong>, and click OK<\/p>\n<p>In this tree, navigate to the Services folder at <em>HKLM\\SYSTEM\\CurrentControlSet\\Services<\/em><\/p>\n<p>In this folder, each subsequent folder refers to a system installed on the system, in this example I looked for anything that relates to the Rapport software.<\/p>\n<p>Navigate to the folder of a service, then double click the Start entry<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-571\" src=\"https:\/\/james-batchelor.com\/wp-content\/uploads\/2018\/07\/win7loop-05.png\" alt=\"\" width=\"496\" height=\"223\" srcset=\"https:\/\/james-batchelor.com\/wp-content\/uploads\/2018\/07\/win7loop-05.png 496w, https:\/\/james-batchelor.com\/wp-content\/uploads\/2018\/07\/win7loop-05-300x135.png 300w\" sizes=\"auto, (max-width: 496px) 85vw, 496px\" \/><\/p>\n<p>The way the service starts depends on the following number in this field:<\/p>\n<ul>\n<li>0 \u2013 Boot<\/li>\n<li>1 \u2013 System<\/li>\n<li>2 \u2013 Automatic<\/li>\n<li>3 \u2013 Manual<\/li>\n<li>4 \u2013 Disabled<\/li>\n<\/ul>\n<p>Change the Value Data to 4, and click OK<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-572\" src=\"https:\/\/james-batchelor.com\/wp-content\/uploads\/2018\/07\/win7loop-06.png\" alt=\"\" width=\"335\" height=\"192\" srcset=\"https:\/\/james-batchelor.com\/wp-content\/uploads\/2018\/07\/win7loop-06.png 335w, https:\/\/james-batchelor.com\/wp-content\/uploads\/2018\/07\/win7loop-06-300x172.png 300w\" sizes=\"auto, (max-width: 335px) 85vw, 335px\" \/><\/p>\n<p>Repeat this for every service you wish to disable,<\/p>\n<p>When done with the registry, navigate to the <strong>identifiable name<\/strong> you give earlier, right click it and choose <em>Unload Hive<\/em><\/p>\n<p>Close regedit, then <em>restart<\/em>\u00a0the PC from the min Recovery menu, another cross of the fingers will also help.<\/p>\n<h3>Windows Recovered<\/h3>\n<p>For me this was a success and a great relief.<\/p>\n<p>The whole process took a lot of time to diagnose and resolve, but only a fraction of the time compared to a full system rebuild, restoring the software and files from its last known state, and not to mention the ongoing support to the user in re-creating the configuration they were originally happy with.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>An interesting call came in this week; I say interesting but in reality it is a call we all dread. A user that is reporting that the computer keeps displaying \u201cTrying to recover Windows\u201d followed by the inevitable \u201cUnable to recover Windows\u201d. Unable to remote on and look, there was no choice to bring it &hellip; <a href=\"https:\/\/james-batchelor.com\/index.php\/2018\/04\/20\/windows-7-startup-repair-loop\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Windows 7: Startup Repair Loop&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[97],"tags":[233,235,234,229,230,231,236,237,232,228],"class_list":["post-565","post","type-post","status-publish","format-standard","hentry","category-windows","tag-disable-services","tag-mbr","tag-rapport","tag-recovery","tag-recovery-dvd","tag-regedit","tag-repair","tag-repair-loop","tag-services","tag-windows-7"],"_links":{"self":[{"href":"https:\/\/james-batchelor.com\/index.php\/wp-json\/wp\/v2\/posts\/565","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/james-batchelor.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/james-batchelor.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/james-batchelor.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/james-batchelor.com\/index.php\/wp-json\/wp\/v2\/comments?post=565"}],"version-history":[{"count":2,"href":"https:\/\/james-batchelor.com\/index.php\/wp-json\/wp\/v2\/posts\/565\/revisions"}],"predecessor-version":[{"id":574,"href":"https:\/\/james-batchelor.com\/index.php\/wp-json\/wp\/v2\/posts\/565\/revisions\/574"}],"wp:attachment":[{"href":"https:\/\/james-batchelor.com\/index.php\/wp-json\/wp\/v2\/media?parent=565"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/james-batchelor.com\/index.php\/wp-json\/wp\/v2\/categories?post=565"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/james-batchelor.com\/index.php\/wp-json\/wp\/v2\/tags?post=565"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}