[SOLVED] SFC can't repair system files

MPeti1

Active member
Joined
Feb 23, 2019
Posts
42
Hi!
Starting from the morning I'm trying to fix system files with SFC and DISM but no success... SFC says it can't fix the files, and DISM says while working from sources that it can't find the source files. I can't run it without sources because Windows Update is completely broken for me...
I've read on other places that SFCFix can fix system files that DISM can't, and that it can also work without a zip file. I've tried running that, but the first step failed, and in the end it wasn't able to do something with 2 files. After that it instantly crashes when it starts doing it's business, but I've let it to upload the crash dump.
Here is the txt file's content that it opens in the end:


SFCFix version 3.0.1.0 by niemiro.
Start time: 2019-02-24 00:03:51.162
Microsoft Windows 10 Build 15063 - amd64
Not using a script file.




SFCFix version 3.0.1.0 by niemiro has encountered an unhandled exception.
Currently storing 0 datablocks.
Finish time: 2019-02-24 00:03:56.858
----------------------EOF-----------------------

Could you help me, please?
 

Attachments

Hello and welcome!

Due to the errors I'm seeing, I have reason to believe that HDD may be involved:

GSmartControl
Follow the instructions below to test your hard drive health with GSmartControl:


  • Download GSmartControl and save it on your Desktop;
  • Execute gsmartcontrol.exe; Let the install complete and launch the programme.
  • Identify your drive in the list, and double-click on it to bring up it's window (usually you'll find your drive by it's size or it's brand name);
  • Go in the Perform Tests tab, then select Extended Self-test in the Test type drop-down list and click on Execute (this test can take a few hours to complete);
  • Once the test is over, the results will be displayed at the bottom of the window. Please copy and paste these results in your next reply;
  • Also, go in the Attributes tab and if you have any entries highlighted in red or pink, take a screenshot of the GSmartControl window and attach it in your next reply;
    info_failing.png
 
I have Windows installed on an SSD, but originally it was installed on a HDD. What kind of errors do you see? Please don't oversimplfy it, I believe I could understand it :)
 
Okay, in that case provide only the SMART status of the drive via GSmartControl. Please take a screenshot regardless of whether you have pink/red entries of not.

Well, I can see one corrupt file reported by SFC Scan, but instead of reporting corruption (which would mean that the file is in fact corrupt and needs replacement), this one is reporting: file cannot be checked, which could mean the file is located on the bad block of the drive, so I just want to be certain that we are not working with a potentially damaged drive. :)
 
Here is the SMART table. HD Sentinel was already installed and I'm already late to sleep, but if it doesnt show something then I can take a screenshot of GSmartControl also. If needed I can also make a surface test and chkdsk report

44187
 
Last edited:
Looks okay. When you wake up, please try the following:

Step#1 - ChkDsk Scan
  1. Click your Start Button in the lower left of your computer and type cmd in the search box.
  2. Once the cmd program is found, right-click on it with your mouse and select Run as administrator as shown below.
  3. Answer Yes when asked to allow.
  4. You should now have a black window open that you can type in to.
  5. Please type chkdsk /f and then press enter.
  6. Chkdsk will start to run. Please allow it to finish.
  7. Download ListChkdskResult.exe by SleepyDude and save it on your desktop. If it's already downloaded to your desktop, just skip this step.
  8. Right-click this file and select Run as administrator (Allow if prompted) and a text file will open (and also be saved on the desktop as ListChkdskResult.txt).
Please copy the contents of this file and paste into your next post.
 
Here are the results. As you can see in the log, I didn't specify /f since it would have required me to restart my pc but I have a lot of things open now, but it seems that everything is OK.

ListChkdskResult by SleepyDude v0.1.7 Beta | 21-09-2013

------< Log generate on 2019. 02. 24. 10:02:49 >------
Category: 0
Computer Name: XYZ
Event Code: 26212
Record Number: 440847
Source Name: Chkdsk
Time Written: 02-24-2019 @ 09:00:25
Event Type: Információ
User:
Message: Chkdsk was executed in read-only mode on a volume snapshot.

Checking file system on C:
The type of the file system is NTFS.
Volume label is Windows 10 Pro.

WARNING! /F parameter not specified.
Running CHKDSK in read-only mode.

Stage 1: Examining basic file system structure ...
Cleaning up instance tags for file 0x1628e0.


2183168 file records processed.

File verification completed.


14330 large file records processed.



0 bad file records processed.


Stage 2: Examining file name linkage ...


2723968 index entries processed.

Index verification completed.


0 unindexed files scanned.



0 unindexed files recovered to lost and found.


Stage 3: Examining security descriptors ...
Security descriptor verification completed.


270401 data files processed.

CHKDSK is verifying Usn Journal...


40042160 USN bytes processed.

Usn Journal verification completed.

Windows has scanned the file system and found no problems.
No further action is required.

243685559 KB total disk space.
229246820 KB in 1540639 files.
874840 KB in 270402 indexes.
0 KB in bad sectors.
2309347 KB in use by the system.
65536 KB occupied by the log file.
11254552 KB available on disk.

4096 bytes in each allocation unit.
60921389 total allocation units on disk.
2813638 allocation units available on disk.

-----------------------------------------------------------------------
Category: 0
Computer Name: XYZ
Event Code: 26226
Record Number: 438658
Source Name: Chkdsk
Time Written: 01-19-2019 @ 14:52:44
Event Type: Információ
User:
Message: Chkdsk was executed in scan mode on a volume snapshot.

Checking file system on C:
The type of the file system is NTFS.
Volume label is Windows 10 Pro.

Stage 1: Examining basic file system structure ...


2183168 file records processed.

File verification completed.


12593 large file records processed.



0 bad file records processed.


Stage 2: Examining file name linkage ...


2758052 index entries processed.

Index verification completed.


0 unindexed files scanned.



0 unindexed files recovered to lost and found.


Stage 3: Examining security descriptors ...
Security descriptor verification completed.


287443 data files processed.

CHKDSK is verifying Usn Journal...


38228640 USN bytes processed.

Usn Journal verification completed.

Windows has scanned the file system and found no problems.
No further action is required.

243685559 KB total disk space.
227195716 KB in 1756881 files.
1001536 KB in 287444 indexes.
0 KB in bad sectors.
2307355 KB in use by the system.
65536 KB occupied by the log file.
13180952 KB available on disk.

4096 bytes in each allocation unit.
60921389 total allocation units on disk.
3295238 allocation units available on disk.

----------------------------------------------------------------------


Stage 1: Examining basic file system structure ...

Stage 2: Examining file name linkage ...

Stage 3: Examining security descriptors ...

-----------------------------------------------------------------------
 
OK.

SFCFix Script

Warning: this fix is specific to the user in this thread. No one else should follow these instructions as it may cause more harm than good. If you are after assistance, please start a thread of your own.


  1. Download SFCFix.exe (by niemiro) and save this to your Desktop.
  2. Download the file below, SFCFix.zip, and save this to your Desktop. Ensure that this file is named SFCFix.zip - do not rename it.
  3. Save any open documents and close all open windows.
  4. On your Desktop, you should see two files: SFCFix.exe and SFCFix.zip.
  5. Drag the file SFCFix.zip onto the file SFCFix.exe and release it.
  6. SFCFix will now process the script.
  7. Upon completion, a file should be created on your Desktop: SFCFix.txt.
  8. Copy (Ctrl+C) and Paste (Ctrl+V) the contents of this file into your next post for me to analyse please - put [CODE][/CODE] tags around the log to break up the text.



SFC Scan


  1. Click on the Start button and in the search box, type Command Prompt
  2. When you see Command Prompt on the list, right-click on it and select Run as administrator
  3. When command prompt opens, copy and paste the following commands into it, press enter after each

    sfc /scannow


    Wait for this to finish before you continue

    copy %windir%\logs\cbs\cbs.log "%userprofile%\Desktop\cbs.txt"
  4. This will create a file, cbs.txt on your Desktop. Please attach this to your next post.
 

Attachments

Here are the contents of the file:

Code:
SFCFix version 3.0.1.0 by niemiro.
Start time: 2019-02-24 10:27:05.581
Microsoft Windows 10 Build 15063 - amd64
Using .zip script file at C:\Users\masap\Downloads\SFCFix.zip [0]




PowerCopy::
Successfully took permissions for file or folder C:\Windows\WinSxS\amd64_microsoft-windows-compat-generaltel_31bf3856ad364e35_10.0.15063.962_none_4a68cd07f3d2deaf\CompatTelRunner.exe

Successfully copied file C:\Users\masap\AppData\Local\niemiro\Archive\winsxs\amd64_microsoft-windows-compat-generaltel_31bf3856ad364e35_10.0.15063.962_none_4a68cd07f3d2deaf\CompatTelRunner.exe to C:\Windows\WinSxS\amd64_microsoft-windows-compat-generaltel_31bf3856ad364e35_10.0.15063.962_none_4a68cd07f3d2deaf\CompatTelRunner.exe.

Successfully restored ownership for C:\Windows\WinSxS\amd64_microsoft-windows-compat-generaltel_31bf3856ad364e35_10.0.15063.962_none_4a68cd07f3d2deaf\CompatTelRunner.exe
Successfully restored permissions on C:\Windows\WinSxS\amd64_microsoft-windows-compat-generaltel_31bf3856ad364e35_10.0.15063.962_none_4a68cd07f3d2deaf\CompatTelRunner.exe
PowerCopy:: directive completed successfully.




Successfully processed all directives.
SFCFix version 3.0.1.0 by niemiro has completed.
Currently storing 1 datablocks.
Finish time: 2019-02-24 10:27:06.637
Script hash: rqtXJHlckZgrXgtzMzmcZIXmvglIApHgKCqqxtK/ADc=
----------------------EOF-----------------------

SFC still says it couldn't fix everything. Here is the CBS.log file: 20190224 - SFC error
It's too big to upload here, and for some reason Gist gives me HTTP 405 on upload every time..
 
It seems I've found a solution. The base problem was that earlier by accident I deleted the Windows update services, and mainly this is why I wanted to use sfc and dism to restore them. But yesterday I've found that they were only removed from the registry. I made a backup of them on an other PC with the same version and restored them on my pc, and now it's working. After that dism was able to replace any further corrupted files (without sources but with WU), and also sfc says everything is OK.

But there are also a few problems:
  • After a hibernation (or maybe 2) memory management gets confused and moves memory of programs to page file which I actively use or just clicked out of it's window, even with 50-70% RAM usage (where 100% is 8 GB). To be honest this was the thing that made me to take the time to find and fix anything I find working bad, because my time is going 70% by waiting to move back memory from the pagefile
  • Now that Windows update is working again, I've installed a bunch of updates successfully but now it's stuck with newer updates. No combinations of Windows update troubleshooter (in Settings app), retry and reboot worked till now.
  • And if you say there is also another problem regarding the storage. I didn't perceived any problems with it, but if there is one then it's best to solve it sooner than later
I know the first 2 should go to a new thread, so let's focus on the 3. now. In the afternoon I'll check the SMART table in GSmartControl, and upload here a screenshot about it
 
Last edited:
EDIT: (sorry, limit reached and forgot to include that)
I can't confirm that the memory management problem is still there, it may be fixed by an update or the dism and sfc, but it may be still there
 
Here are the results:


Code:
Farbar Service Scanner Version: 27-01-2016
Ran by masap (administrator) on 27-02-2019 at 23:44:45
Running from "C:\Users\masap\Downloads"
Microsoft Windows 10 Pro  (X64)
Boot Mode: Normal
****************************************************************

Internet Services:
============

Connection Status:
==============
Localhost is accessible.
LAN connected.
Google IP is accessible.
Google.com is accessible.
Yahoo.com is accessible.


Windows Firewall:
=============

Firewall Disabled Policy:
==================


System Restore:
============
SDRSVC Service is not running. Checking service configuration:
The start type of SDRSVC service is set to Disabled. The default start type is 3.
The ImagePath of SDRSVC service is OK.
The ServiceDll of SDRSVC service is OK.


System Restore Policy:
========================


Security Center:
============


Windows Update:
============
wuauserv Service is not running. Checking service configuration:
The start type of wuauserv service is OK.
The ImagePath of wuauserv service is OK.
The ServiceDll of wuauserv service is OK.


Windows Autoupdate Disabled Policy:
============================


Windows Defender:
==============

Other Services:
==============


File Check:
========
C:\Windows\System32\nsisvc.dll => File is digitally signed
C:\Windows\System32\drivers\nsiproxy.sys => File is digitally signed
C:\Windows\System32\drivers\afd.sys => File is digitally signed
C:\Windows\System32\drivers\tdx.sys => File is digitally signed
C:\Windows\System32\Drivers\tcpip.sys => File is digitally signed
C:\Windows\System32\dnsrslvr.dll => File is digitally signed
C:\Windows\System32\dnsapi.dll => File is digitally signed
C:\Windows\SysWOW64\dnsapi.dll => File is digitally signed
C:\Windows\System32\mpssvc.dll => File is digitally signed
C:\Windows\System32\bfe.dll => File is digitally signed
C:\Windows\System32\drivers\mpsdrv.sys => File is digitally signed
C:\Windows\System32\SDRSVC.dll => File is digitally signed
C:\Windows\System32\vssvc.exe => File is digitally signed
C:\Windows\System32\wscsvc.dll => File is digitally signed
C:\Windows\System32\wbem\WMIsvc.dll => File is digitally signed
C:\Windows\System32\wuaueng.dll => File is digitally signed
C:\Windows\System32\qmgr.dll => File is digitally signed
C:\Windows\System32\es.dll => File is digitally signed
C:\Windows\System32\cryptsvc.dll => File is digitally signed
C:\Program Files\Windows Defender\MpSvc.dll => File is digitally signed
C:\Windows\System32\ipnathlp.dll => File is digitally signed
C:\Windows\System32\iphlpsvc.dll => File is digitally signed
C:\Windows\System32\svchost.exe => File is digitally signed
C:\Windows\System32\rpcss.dll => File is digitally signed


**** End of log ****
 
No, SFC still says there are bad files which it can't replace (although dism says component store is ok). What's weird is that I've taken a look at the filtered (for [SR]) log a few times after sfc /scannow, but (after running SFCFix) I've never found a line stating that file xy can't be replaced, just errors and warnings about file xy has more than one owner, or something like that.

What I'm sure about is at least the builtin .NET files need to be bad (\Windows\Microsoft.NET\), since windows update has an error code related to this for 2 pending updates, and since I've tried to fix it with the official repair tool (which does nothing at all, I think it should replace all files and rewrite reg keys and values related to .NET), and remove it with the official cleanup tool management console doesn't open, and a program I know built on that opens but crashes on click.
 

Has Sysnative Forums helped you? Please consider donating to help us support the site!

Back
Top