{"id":957,"date":"2016-07-08T01:33:00","date_gmt":"2016-07-07T23:33:00","guid":{"rendered":"http:\/\/borncity.com\/win\/?p=957"},"modified":"2022-06-23T20:58:18","modified_gmt":"2022-06-23T18:58:18","slug":"check-and-repair-windows-system-files-and-component-store","status":"publish","type":"post","link":"https:\/\/borncity.com\/win\/2016\/07\/08\/check-and-repair-windows-system-files-and-component-store\/","title":{"rendered":"Check and repair Windows system files and component store"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" style=\"float: left; margin: 0px 10px 0px 0px; display: inline;\" src=\"http:\/\/www.borncity.com\/blog\/wp-content\/uploads\/2013\/03\/winb.jpg\" width=\"58\" height=\"58\" align=\"left\" \/>Users of Windows are facing the situation from time to time, that certain features no longer work. The Windows Store is missing or there are updates problems and so on. Then the question arises, \"how to repair Windows\"? The following description applies to Windows 7, Windows 8, Windows 8.1, Windows 10 RTM (and higher).<\/p>\n<p><!--more--><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ssl-vg03.met.vgwort.de\/na\/6a046fc237bc40a4ab26f73ff0bef4dc\" alt=\"\" width=\"1\" height=\"1\" \/>In Windows 8 the 'Windows refresh' approach has been introduced. But during Windows refresh you lose the installed programs and Windows needs some reworking (which isn't discussed here). But there are alternative methods to be used, to repair a broken Windows. Windows refresh is only a last option. Lets have a look at the details.<\/p>\n<h3>Use System File Checker to repair damaged files<\/h3>\n<p>From Windows 7 and upward the first approach to repair a damaged Windows is a check for damaged system files. Open the window an administrative command (see <a href=\"https:\/\/web.archive.org\/web\/20210512202711\/https:\/\/borncity.com\/win\/2016\/07\/06\/windows10-open-command-prompt-window-as-administrator\/\">Windows 10: Open command prompt window as administrator<\/a>) and enter the command:<\/p>\n<p><em>sfc \/ scannow<\/em><\/p>\n<p>Press <em>Enter <\/em>and wait until the test is complete. If damaged files found, system file checker tries to repair those files.<\/p>\n<p><img decoding=\"async\" title=\"SFC\" src=\"https:\/\/web.archive.org\/web\/20170905090659\/http:\/\/p62.imgup.net\/sfc24e9.jpg\" alt=\"SFC\" \/><\/p>\n<p>If sfc isn't able to repair broken system files, you can analyze the log files and try the methods discussed below to fix that issue. The log file is located at:<\/p>\n<p><em>%windir%\\logs\\cbs\\cbs.log<\/em><\/p>\n<p>Some hints to analyze the log file created by sfc may be found in Microsoft's article <a href=\"https:\/\/support.microsoft.com\/en-us\/kb\/928228\" target=\"_blank\" rel=\"noopener noreferrer\">How to analyze the log file entries that the Microsoft Windows Resource Checker (SFC.exe) program generates in Windows Vista<\/a>.<\/p>\n<h3>Repair broken packages in Windows 7<\/h3>\n<p>If <em>sfc <\/em>isn't able to repair corrupted files, you can try manually to repair the damage. Just copy the missing files from another machine or from <em>install.wim <\/em>of an install image to the target folder of your machine. Microsoft has released an article <a href=\"https:\/\/support.microsoft.com\/en-us\/kb\/929833\" target=\"_blank\" rel=\"noopener noreferrer\">Use the System File Checker tool to repair missing or corrupted system files<\/a> that addressed briefly this approach.<\/p>\n<p>In some cases, broken Windows update files are the cause of errors reported by system file checker. In this case, use CheckSUR (aka System Update Readiness tool) to repair the broken component. The download links for this tool and also some explanations may be found at <a href=\"https:\/\/support.microsoft.com\/en-us\/kb\/947821\" target=\"_blank\" rel=\"noopener noreferrer\">Fix Windows Update errors by using the DISM or System Update Readiness tool.<\/a><\/p>\n<blockquote><p>I've seen several cases, where manifest files with wrong content, delivered via Windows update, was the root cause for unrecoverable sfc errors. In this case you have to wait, till Microsoft ships an amended update file.<\/p><\/blockquote>\n<h3>Check Windows component store integrity and repair files<\/h3>\n<p>Broken packages in Windows component store (a Manifest is missing or damaged for instance) are sometimes the reason for malfunctions. Microsoft has retired System Update Readiness Tool checksur in Windows 8. From Windows 8 and upwards, the DISM command may be used to check and repair Windows component store integrity.<\/p>\n<p>1. Open an administrative command prompt windows (see <a href=\"https:\/\/web.archive.org\/web\/20210512202711\/https:\/\/borncity.com\/win\/2016\/07\/06\/windows10-open-command-prompt-window-as-administrator\/\">Windows 10: Open command prompt window as administrator<\/a>).<\/p>\n<p>2. Enter the commands give below to check and repair the Component Store.<\/p>\n<p>The command:<\/p>\n<p>Dism \/online \/cleanup-image \/ScanHealth<\/p>\n<p>checks the component storage for damage, but nothing is repaired. The process may take several minutes. Then, use the following command:<\/p>\n<p>Dism \/online \/cleanup-image \/CheckHealth<\/p>\n<p>to check whether an damage of the Component Store is detected. The command checks a registry entry and reports, if damages are found and whether the damaged components can be repaired. The instruction:<\/p>\n<p>Dism \/online \/cleanup-image \/RestoreHealth<\/p>\n<p>is trying to fix the broken packages with internal methods. DISM uses Windows Update to provide the files that are required to fix corruptions. If your Windows Update client is already broken, use the following command:<\/p>\n<p>DISM.exe \/Online \/Cleanup-Image<br \/>\n\/RestoreHealth \/Source:<var>C:\\RepairSource\\Windows<\/var> \/LimitAccess<\/p>\n<p>to repair damaged packages. The two lines shown above are one command (I formatted the command into two lines). The source parameter specifies the path to the Windows image. You can, for example, use a setup DVD as the source and specify the path to the folder, where the <em>install.wim<\/em> can be found. The \/Limit Access option is only required if a WSUS server is used to distribute updates. A repair of the component store may take 10 to 15 minutes. Further details may be found in Microsoft's KB-Article <a href=\"https:\/\/support.microsoft.com\/en-us\/kb\/947821\" target=\"_blank\" rel=\"noopener noreferrer\">KB947821<\/a>.<\/p>\n<h3>Can't repair, try an in place upgrade repair<\/h3>\n<p>If the system not repairable, you can use an in place upgrade repair. Just insert a Windows install image (that correspondents to your installed Windows version). Fire up explorer.exe and navigate to <em>setup.exe. <\/em>Launch <em>setup.exe <\/em>and follow the instruction shown on the screen to update your system. See also <a href=\"https:\/\/web.archive.org\/web\/20220413175023\/https:\/\/www.tenforums.com\/tutorials\/16397-repair-install-windows-10-place-upgrade.html\" target=\"_blank\" rel=\"noopener noreferrer\">this article<\/a> for Windows 10 and use a similar approach in Windows 7 up to Windows 8.1.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Users of Windows are facing the situation from time to time, that certain features no longer work. The Windows Store is missing or there are updates problems and so on. Then the question arises, \"how to repair Windows\"? The following &hellip; <a href=\"https:\/\/borncity.com\/win\/2016\/07\/08\/check-and-repair-windows-system-files-and-component-store\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[271,194],"class_list":["post-957","post","type-post","status-publish","format-standard","hentry","category-windows","tag-repair","tag-windows"],"_links":{"self":[{"href":"https:\/\/borncity.com\/win\/wp-json\/wp\/v2\/posts\/957","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/borncity.com\/win\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/borncity.com\/win\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/borncity.com\/win\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/borncity.com\/win\/wp-json\/wp\/v2\/comments?post=957"}],"version-history":[{"count":0,"href":"https:\/\/borncity.com\/win\/wp-json\/wp\/v2\/posts\/957\/revisions"}],"wp:attachment":[{"href":"https:\/\/borncity.com\/win\/wp-json\/wp\/v2\/media?parent=957"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/borncity.com\/win\/wp-json\/wp\/v2\/categories?post=957"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/borncity.com\/win\/wp-json\/wp\/v2\/tags?post=957"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}