{"id":1017,"date":"2019-01-14T02:49:15","date_gmt":"2019-01-14T00:49:15","guid":{"rendered":"http:\/\/itsimple.info\/?p=1017"},"modified":"2019-01-14T02:59:30","modified_gmt":"2019-01-14T00:59:30","slug":"using-dsim-and-sfc-to-try-and-fixing-windows-installation","status":"publish","type":"post","link":"https:\/\/itsimple.info\/?p=1017","title":{"rendered":"Using Dsim and SFC to try and fixing windows installation"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>System File Checker = SFC is a tool to scan windows core file and repair installation if needed, the most common use of the tool is to execute:<\/p>\n<pre><strong>sfc \/scannow<\/strong><\/pre>\n<p>This will scan system file and repair with original version if it will find corrupted files !<\/p>\n<p>Here is a list of all SFC scan switches that you can use :<\/p>\n<ul>\n<li><strong>\/SCANNOW<\/strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Scans integrity of all protected system files and repairs files with problems when possible.<\/li>\n<li><strong>\/VERIFYONLY\u00a0<\/strong>\u00a0\u00a0\u00a0 Scans integrity of all protected system files. No repair operation is performed.<\/li>\n<li><strong>\/SCANFILE<\/strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Scans integrity of the referenced file, repairs file if problems are identified. Specify full path &lt;file&gt;<\/li>\n<li><strong>\/VERIFYFILE<\/strong>\u00a0\u00a0\u00a0\u00a0 Verifies the integrity of the file with full path &lt;file&gt;.\u00a0 No repair operation is performed.<\/li>\n<li><strong>\/OFFBOOTDIR<\/strong>\u00a0\u00a0\u00a0\u00a0 For offline repair specify the location of the offline boot directory<\/li>\n<li><strong>\/OFFWINDIR<\/strong>\u00a0\u00a0\u00a0\u00a0\u00a0 For offline repair specify the location of the offline windows directory<\/li>\n<\/ul>\n<p>for example, to run Windows Protected Files scan :<\/p>\n<pre><strong>sfc \/scannow \/offbootdir=c:\\ \/offwindir=c:\\windows\r\n<\/strong><\/pre>\n<p>There is a tool that can run after you run SFC, its analyzing the logs at %windir%\\Logs\\CBS , the tool is called SFCfix and you can download it from here (with no guaranty): <a href=\"https:\/\/itsimple.info\/wp-content\/uploads\/2019\/01\/SFCFix.rar\">SFCFix<\/a><\/p>\n<p>you need to rn the tool after tou run SFC so it will have a log to analyses.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-1026\" src=\"https:\/\/itsimple.info\/wp-content\/uploads\/2019\/01\/sfc-fix-300x197.jpg\" alt=\"\" width=\"892\" height=\"586\" srcset=\"https:\/\/itsimple.info\/wp-content\/uploads\/2019\/01\/sfc-fix-300x197.jpg 300w, https:\/\/itsimple.info\/wp-content\/uploads\/2019\/01\/sfc-fix.jpg 506w\" sizes=\"auto, (max-width: 892px) 100vw, 892px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>If SFC failes to rescue you can use DSIM tool, You need to start with :<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1019\" src=\"https:\/\/itsimple.info\/wp-content\/uploads\/2019\/01\/dism-checkhealth-300x158.jpg\" alt=\"\" width=\"874\" height=\"460\" srcset=\"https:\/\/itsimple.info\/wp-content\/uploads\/2019\/01\/dism-checkhealth-300x158.jpg 300w, https:\/\/itsimple.info\/wp-content\/uploads\/2019\/01\/dism-checkhealth-768x403.jpg 768w, https:\/\/itsimple.info\/wp-content\/uploads\/2019\/01\/dism-checkhealth-818x430.jpg 818w, https:\/\/itsimple.info\/wp-content\/uploads\/2019\/01\/dism-checkhealth.jpg 979w\" sizes=\"auto, (max-width: 874px) 100vw, 874px\" \/><\/p>\n<pre><code>DISM \/Online \/Cleanup-Image \/CheckHealth<\/code><\/pre>\n<p>This will check the health of your system<\/p>\n<p>Use the DISM command with the \/RestoreHealth switch to scan the Windows image for any corruption and to perform a repair automatically. Unlike the \/ScanHealth switch, the \/RestoreHealth switch can take up to 20 minutes to complete the process.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1021\" src=\"https:\/\/itsimple.info\/wp-content\/uploads\/2019\/01\/dism-restorehealth-300x158.jpg\" alt=\"\" width=\"877\" height=\"462\" srcset=\"https:\/\/itsimple.info\/wp-content\/uploads\/2019\/01\/dism-restorehealth-300x158.jpg 300w, https:\/\/itsimple.info\/wp-content\/uploads\/2019\/01\/dism-restorehealth-818x430.jpg 818w\" sizes=\"auto, (max-width: 877px) 100vw, 877px\" \/><\/p>\n<pre><code>DISM \/Online \/Cleanup-Image \/RestoreHealth<\/code><\/pre>\n<p>You can also point DSIM to specific source image for originals file to replace corrupted ones\u00a0 (concidering D is your windows installation disk):<\/p>\n<p><code>DISM \/Online \/Cleanup-Image \/RestoreHealth \/Source:D:\\Sources\\install.wim<\/code><\/p>\n<p>You can also limit the use of windows update service and to stay offline with the switch <code>\/LimitAccess :<\/code><\/p>\n<p><code>DISM \/Online \/Cleanup-Image \/RestoreHealth \/Source:D:\\Sources\\install.wim \/LimitAccess<\/code><\/p>\n<p>&nbsp;<\/p>\n<p>You can also use Group policy to specify the location of the sources :<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1022\" src=\"https:\/\/itsimple.info\/wp-content\/uploads\/2019\/01\/dism-GroupPolicy-300x278.png\" alt=\"\" width=\"885\" height=\"820\" srcset=\"https:\/\/itsimple.info\/wp-content\/uploads\/2019\/01\/dism-GroupPolicy-300x278.png 300w, https:\/\/itsimple.info\/wp-content\/uploads\/2019\/01\/dism-GroupPolicy.png 686w\" sizes=\"auto, (max-width: 885px) 100vw, 885px\" \/><\/p>\n<p>You can use DISM in Windows PowerShell as well. The commands are slightly different.<\/p>\n<ul>\n<li><strong>CheckHealth<\/strong>: Repair-WindowsImage -CheckHealth<\/li>\n<li><strong>ScanHealth<\/strong>: Repair-WindowsImage -ScanHealth<\/li>\n<li><strong>RestoreHealth<\/strong>: Repair-WindowsImage -RestoreHealth<\/li>\n<\/ul>\n<p>DISM Instructional Video<\/p>\n<p><iframe loading=\"lazy\" src=\"https:\/\/www.youtube-nocookie.com\/embed\/iAhe3p-Vxbg\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\" data-mce-fragment=\"1\"><\/iframe><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; &nbsp; System File Checker = SFC is a tool to scan windows core file and repair installation if needed, the most common use of the tool is to execute: sfc \/scannow This will scan system file and repair with original version if it will find corrupted files ! Here is a list of all [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,14,15],"tags":[],"class_list":["post-1017","post","type-post","status-publish","format-standard","hentry","category-tech","category-windows","category-windows-server"],"_links":{"self":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/posts\/1017","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1017"}],"version-history":[{"count":0,"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/posts\/1017\/revisions"}],"wp:attachment":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1017"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1017"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1017"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}