{"id":10193,"date":"2018-09-17T06:05:10","date_gmt":"2018-09-17T13:05:10","guid":{"rendered":"https:\/\/www.zubairalexander.com\/stage\/?p=10193"},"modified":"2018-09-20T10:41:00","modified_gmt":"2018-09-20T17:41:00","slug":"system-repair-pending-which-requires-reboot-to-complete","status":"publish","type":"post","link":"https:\/\/www.zubairalexander.com\/blog\/system-repair-pending-which-requires-reboot-to-complete\/","title":{"rendered":"Solution for Error &#8220;There is a system repair pending which requires reboot to complete. Restart Windows and run sfc again.&#8221;"},"content":{"rendered":"<p>I recently tried to install the September cumulative update on a Windows Server 2016, but the\u00a0<strong>2018-09 Cumulative Update for Windows Server 2016 for x64-based Systems (KB4457131)<\/strong> failed. I received the familiar Windows Update error 0x8000ffff.<\/p>\n<p><em>2018-09 Cumulative Update for Windows Server 2016 for x64-based Systems (KB4457131) &#8211; Error 0x8000ffff<\/em><\/p>\n<p><a href=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2018\/09\/Error-0x8000ffff.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-10195\" src=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2018\/09\/Error-0x8000ffff.png\" alt=\"Windows Update Error 0x8000ffff\" width=\"782\" height=\"198\" srcset=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2018\/09\/Error-0x8000ffff.png 782w, https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2018\/09\/Error-0x8000ffff-300x76.png 300w, https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2018\/09\/Error-0x8000ffff-768x194.png 768w\" sizes=\"(max-width: 782px) 100vw, 782px\" \/><\/a><\/p>\n<p>You can&#8217;t ignore this update because it includes lots of security updates to the Windows Server. According to <a href=\"https:\/\/support.microsoft.com\/en-us\/help\/4457131\" target=\"_blank\" rel=\"noopener\">Microsoft<\/a>, it doesn&#8217;t include any new operating system features, but includes quality improvements and key security updates, such as:<\/p>\n<p>&#8220;Security updates to Internet Explorer, Microsoft Edge, Microsoft scripting engine, Microsoft Graphics Component, Windows media, Windows Shell, Device Guard, Windows Hyper-V, Windows catacenter networking, Windows kernel, Windows virtualization and kernel, Microsoft JET Database Engine, Windows MSXML, and Windows Server.&#8221;<\/p>\n<p>I believe the word catacenter in the above quote is a typo. It should be datacenter.<\/p>\n<h4><strong>Solutions That Didn&#8217;t Work, But May Work for You<\/strong><\/h4>\n<p>In this section I am going to document the solutions that didn&#8217;t work because one of these solutions may help you solve the problem. I\u00a0started to go down the list of solutions that I have documented in my article\u00a0<a href=\"https:\/\/www.zubairalexander.com\/blog\/solution-for-windows-update-error-0x800705b4\/\">Solution for Windows Update Error 0x800705b4 (2018-06 Cumulative Update<\/a>. Please refer to my article for the detailed explanation of each step.<\/p>\n<p><strong>Solution #1<\/strong>: Temporarily disable the updates of Microsoft products. Once the Windows Update succeeds, go back and enable this feature. See my previous\u00a0<a href=\"https:\/\/www.zubairalexander.com\/blog\/solution-for-windows-update-error-0x800705b4\/\">article<\/a>\u00a0on Windows Update for details.<\/p>\n<p><strong>Solution #2<\/strong>: Verify Windows Update service is running.<\/p>\n<p><strong>Solution #3<\/strong>: Run CCleaner utility.<\/p>\n<p><strong>Solution #4<\/strong>: Manually download the\u00a0<em>2018-09 Cumulative Update for Windows Server 2016 for x64-based Systems (KB4457131)<\/em> from Microsoft Update Catalog.<\/p>\n<p style=\"padding-left: 30px;\"><a href=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2018\/09\/Downloading-KB4457131-from-MUC.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-10196\" src=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2018\/09\/Downloading-KB4457131-from-MUC.png\" alt=\"Downloading KB4457131 from Microsoft Update Catalog\" width=\"1256\" height=\"410\" srcset=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2018\/09\/Downloading-KB4457131-from-MUC.png 1256w, https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2018\/09\/Downloading-KB4457131-from-MUC-300x98.png 300w, https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2018\/09\/Downloading-KB4457131-from-MUC-768x251.png 768w, https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2018\/09\/Downloading-KB4457131-from-MUC-1024x334.png 1024w\" sizes=\"(max-width: 1256px) 100vw, 1256px\" \/><\/a><\/p>\n<p style=\"padding-left: 30px;\">When I downloaded and installed the update, I received this message: <em>Some updates were not installed<\/em>. There was no explanation as to why the update failed.<\/p>\n<p style=\"padding-left: 30px;\"><a href=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2018\/09\/KB4457131-failed.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-10198\" src=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2018\/09\/KB4457131-failed.png\" alt=\"Windows Update KB4457131 failed\" width=\"827\" height=\"455\" srcset=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2018\/09\/KB4457131-failed.png 827w, https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2018\/09\/KB4457131-failed-300x165.png 300w, https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2018\/09\/KB4457131-failed-768x423.png 768w\" sizes=\"(max-width: 827px) 100vw, 827px\" \/><\/a><\/p>\n<p><strong>Solution #5<\/strong>: Run <b>DISM\u00a0<\/b>to replace the damage files.<\/p>\n<p><strong>Solution #6<\/strong>: Run the System File Checker (SFC).<\/p>\n<p style=\"padding-left: 30px;\">When I ran <strong>sfc\/ scannow<\/strong>, I received the following error.<\/p>\n<p style=\"padding-left: 30px;\"><em>There is a system repair pending which requires reboot to complete. Restart Windows and run sfc again.<\/em><\/p>\n<p style=\"padding-left: 30px;\"><a href=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2018\/09\/System-repair-pending-message.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-10194\" src=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2018\/09\/System-repair-pending-message.png\" alt=\"System Repair Pending Message\" width=\"705\" height=\"287\" srcset=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2018\/09\/System-repair-pending-message.png 705w, https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2018\/09\/System-repair-pending-message-300x122.png 300w\" sizes=\"(max-width: 705px) 100vw, 705px\" \/><\/a><\/p>\n<p style=\"padding-left: 30px;\">I restarted the Windows Server, but it made no difference and the system got stuck in an endless loop. Windows Update would fail to install the update and SFC was waiting for a reboot.<\/p>\n<p><strong>Solution #7<\/strong>: Run <strong>SConfig<\/strong> to manually install the Windows Updates.<\/p>\n<p>This is a solution that has always worked for me in the past when every other solution had failed. Unfortunately, this time it failed with the following error. There was no explanation for the error, but I assumed it had to do with the pending system repair.<\/p>\n<p><em>\u00a02018-09 Cumulative Update for Windows Server 2016 for x64-based Systems (KB4457131): Failed<\/em><\/p>\n<p><a href=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2018\/09\/09-2008-Cumulative-update-failure.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-10197\" src=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2018\/09\/09-2008-Cumulative-update-failure.png\" alt=\"SConfig\" width=\"975\" height=\"515\" srcset=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2018\/09\/09-2008-Cumulative-update-failure.png 975w, https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2018\/09\/09-2008-Cumulative-update-failure-300x158.png 300w, https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2018\/09\/09-2008-Cumulative-update-failure-768x406.png 768w\" sizes=\"(max-width: 975px) 100vw, 975px\" \/><\/a><\/p>\n<h4><strong>Solution that Worked<\/strong><\/h4>\n<p>I decided to focus on fixing the problem with pending system repair to see if I can get System File Checker to work. It seemed like there was some corruption in the Windows Update files. I decided to rename the SoftwareDistribution folder and let SFC fix any corrupt files. It would also recreate the SoftwareDistribution folder that&#8217;s free of corruption. Here are the steps I took.<\/p>\n<p>Stopped the Windows Update service.<\/p>\n<p><strong>net stop wuauserv<\/strong><\/p>\n<p>Renamed the SoftwareDistribution folder. The Windows Update service needs to be stopped before you can rename the folder.<\/p>\n<p><strong>rename c:\\windows\\SoftwareDistribution SoftwareDistribution.old<\/strong><\/p>\n<p>Restarted the Windows Update service.<\/p>\n<p><strong>net start wuauserv<\/strong><\/p>\n<p>I then crossed my fingers and ran SFC command.<\/p>\n<p><strong>sfc \/scannow<\/strong><\/p>\n<p>The System File Checker scanned my system without a hitch. It found the corrupt files and successfully repaired them. I also had a new SoftwareDistribution folder hierarchy.<\/p>\n<p><a href=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2018\/09\/SFC-repair-of-corrupt-files.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-10199\" src=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2018\/09\/SFC-repair-of-corrupt-files.png\" alt=\"SFC repair of corrupt files\" width=\"763\" height=\"604\" srcset=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2018\/09\/SFC-repair-of-corrupt-files.png 763w, https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2018\/09\/SFC-repair-of-corrupt-files-300x237.png 300w\" sizes=\"(max-width: 763px) 100vw, 763px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2018\/09\/SoftwareDistribution-hierarchy.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-10201\" src=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2018\/09\/SoftwareDistribution-hierarchy.png\" alt=\"SoftwareDistribution Hierarchy\" width=\"690\" height=\"228\" srcset=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2018\/09\/SoftwareDistribution-hierarchy.png 690w, https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2018\/09\/SoftwareDistribution-hierarchy-300x99.png 300w\" sizes=\"(max-width: 690px) 100vw, 690px\" \/><\/a><\/p>\n<p>As expected, my new SoftwareDistribution folder hierarchy was much smaller in size(1.88 GB), compared to the SoftwareDistrobution.old folder (10 GB).\u00a0I restarted the server. It&#8217;s always a good idea to restart your system after you run SFC\u00a0and it finds and fixes corrupt files.<\/p>\n<p>I finally ran the Windows Update again to install the <em>2018-09 Cumulative Update for Windows Server 2016 for x64-based Systems (KB4457131)<\/em>.<\/p>\n<table>\n<tbody>\n<tr>\n<td style=\"background-color: #e3e3e3; text-align: left;\">Thanks for reading my article. If you are interested in IT training &amp; consulting services, please reach out to me. Visit <a href=\"https:\/\/www.zubairalexander.com\/\" target=\"_blank\" rel=\"noopener\">ZubairAlexander.com<\/a> for information on my professional background.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<p><span style=\"font-size: xx-small; font-family: Verdana;\">Copyright \u00a9 2018 <a href=\"https:\/\/www.seattlepro.com\/\" target=\"_blank\" rel=\"noopener\">SeattlePro Enterprises, LLC<\/a>. All rights reserved.<br \/>\n<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I recently tried to install the September cumulative update on a Windows Server 2016, but the\u00a02018-09 Cumulative Update for Windows Server 2016 for x64-based Systems (KB4457131) failed. I received the familiar Windows Update error 0x8000ffff. 2018-09 Cumulative Update for Windows Server 2016 for x64-based Systems (KB4457131) &#8211; Error 0x8000ffff You can&#8217;t ignore this update because [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":9793,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[43,79,24,11,45,76,30,65,80,64],"tags":[],"class_list":["post-10193","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-articles","category-errors","category-security","category-tips-tricks","category-toolsutils","category-windows-10","category-longhorn-server","category-windows-2012","category-windows-2016","category-windows-8"],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2018\/05\/Windows_Server_featured_small_250x250.png","_links":{"self":[{"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/posts\/10193","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/comments?post=10193"}],"version-history":[{"count":0,"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/posts\/10193\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/media\/9793"}],"wp:attachment":[{"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/media?parent=10193"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/categories?post=10193"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/tags?post=10193"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}