[SOLVED] Windows 10 error when running sfc

meltdown

Well-known member
Joined
Oct 14, 2016
Posts
48
I am getting an error when running sfc /scannow command on my Windows 10 machine. I am hoping the sfcfix tool can be used to resolve this. I've attached my cbs.txt file (in a zip since it was over 20MB). Thank you in advance for any assistance.

Edit: I forgot to mention that I tried running sfcfix straight away (per the instructions at the top). However, when I do this sfcfix crashes and asks me to submit the crash report. This happens each time I try to run it. This is what it looks like:
sfcfixerror.png

And here is the contents of the SFXFix.txt:
Code:
SFCFix version 3.0.0.0 by niemiro.
Start time: 2016-10-14 16:44:17.619
Microsoft Windows 10 Build 14393 - amd64
Not using a script file.




SFCFix version 3.0.0.0 by niemiro has encountered an unhandled exception.
Currently storing 0 datablocks.
Finish time: 2016-10-14 16:44:21.953
----------------------EOF-----------------------
 

Attachments

Does anyone have any ideas on how to tackle this? I'm pretty nervous about the state of the system right now...
 
Code:
CORRUPT: C:\Windows\WinSxS\amd64_microsoft-windows-m..namespace-downlevel_31bf3856ad364e35_10.0.14393.0_none_f4d9462b97ccf242\api-ms-win-core-sysinfo-l1-2-0.dll
CORRUPT: C:\Windows\WinSxS\amd64_windows-defender-am-sigs_31bf3856ad364e35_10.0.14393.0_none_e9f929873253e3cd\MpAvBase.vdm
CORRUPT: C:\Windows\WinSxS\x86_microsoft-windows-msac3enc_31bf3856ad364e35_10.0.14393.0_none_76349df0d9f9ab0e\MSAC3ENC.DLL

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.

Download SFCFix.zip from Sendspace.com - send big files the easy way

SFC Scan

  1. Click on the Start
    Start%20Orb.jpg
    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 zip and attach this to your next post.
 
Thank you for this. I followed the instructions and this is the SFXFix.txt output:
Code:
SFCFix version 3.0.0.0 by niemiro.
Start time: 2016-10-19 16:58:51.779
Microsoft Windows 10 Build 14393 - amd64
Using .zip script file at C:\Users\meltdown\Desktop\SFCFix.zip [0]




PowerCopy::
Successfully took permissions for file or folder C:\WINDOWS\WinSxS\x86_microsoft-windows-msac3enc_31bf3856ad364e35_10.0.14393.0_none_76349df0d9f9ab0e\MSAC3ENC.DLL
Successfully took permissions for file or folder C:\WINDOWS\WinSxS\amd64_windows-defender-am-sigs_31bf3856ad364e35_10.0.14393.0_none_e9f929873253e3cd\MpAvBase.vdm
Successfully took permissions for file or folder C:\WINDOWS\WinSxS\amd64_microsoft-windows-m..namespace-downlevel_31bf3856ad364e35_10.0.14393.0_none_f4d9462b97ccf242\api-ms-win-core-sysinfo-l1-2-0.dll

Successfully copied file C:\Users\meltdown\AppData\Local\niemiro\Archive\WinSxS\x86_microsoft-windows-msac3enc_31bf3856ad364e35_10.0.14393.0_none_76349df0d9f9ab0e\MSAC3ENC.DLL to C:\WINDOWS\WinSxS\x86_microsoft-windows-msac3enc_31bf3856ad364e35_10.0.14393.0_none_76349df0d9f9ab0e\MSAC3ENC.DLL.
Successfully copied file C:\Users\meltdown\AppData\Local\niemiro\Archive\WinSxS\amd64_windows-defender-am-sigs_31bf3856ad364e35_10.0.14393.0_none_e9f929873253e3cd\MpAvBase.vdm to C:\WINDOWS\WinSxS\amd64_windows-defender-am-sigs_31bf3856ad364e35_10.0.14393.0_none_e9f929873253e3cd\MpAvBase.vdm.
Successfully copied file C:\Users\meltdown\AppData\Local\niemiro\Archive\WinSxS\amd64_microsoft-windows-m..namespace-downlevel_31bf3856ad364e35_10.0.14393.0_none_f4d9462b97ccf242\api-ms-win-core-sysinfo-l1-2-0.dll to C:\WINDOWS\WinSxS\amd64_microsoft-windows-m..namespace-downlevel_31bf3856ad364e35_10.0.14393.0_none_f4d9462b97ccf242\api-ms-win-core-sysinfo-l1-2-0.dll.

Successfully restored ownership for C:\WINDOWS\WinSxS\x86_microsoft-windows-msac3enc_31bf3856ad364e35_10.0.14393.0_none_76349df0d9f9ab0e\MSAC3ENC.DLL
Successfully restored permissions on C:\WINDOWS\WinSxS\x86_microsoft-windows-msac3enc_31bf3856ad364e35_10.0.14393.0_none_76349df0d9f9ab0e\MSAC3ENC.DLL
Successfully restored ownership for C:\WINDOWS\WinSxS\amd64_windows-defender-am-sigs_31bf3856ad364e35_10.0.14393.0_none_e9f929873253e3cd\MpAvBase.vdm
Successfully restored permissions on C:\WINDOWS\WinSxS\amd64_windows-defender-am-sigs_31bf3856ad364e35_10.0.14393.0_none_e9f929873253e3cd\MpAvBase.vdm
Successfully restored ownership for C:\WINDOWS\WinSxS\amd64_microsoft-windows-m..namespace-downlevel_31bf3856ad364e35_10.0.14393.0_none_f4d9462b97ccf242\api-ms-win-core-sysinfo-l1-2-0.dll
Successfully restored permissions on C:\WINDOWS\WinSxS\amd64_microsoft-windows-m..namespace-downlevel_31bf3856ad364e35_10.0.14393.0_none_f4d9462b97ccf242\api-ms-win-core-sysinfo-l1-2-0.dll
PowerCopy:: directive completed successfully.




Successfully processed all directives.
SFCFix version 3.0.0.0 by niemiro has completed.
Currently storing 3 datablocks.
Finish time: 2016-10-19 16:58:53.732
Script hash: AyTP4YpFZIsb8gjfmiAxSwEKUMew+IFYqs5BwCGV3c8=
----------------------EOF-----------------------

After running sfc again it looks like there are still a couple of files that are corrupt? I've attached the new cbs.txt.
 

Attachments

I'm attaching another cbs.txt file as I think things have changed since I last posted the previous one. I think I can see which files are corrupt from the end portion of the cbs.txt file. It looks like if I had another good Windows 10 system I could copy the corrupt files from it and build a SFCFix.zip file mirroring the structure of the previous one?
 

Attachments

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.
View attachment 23125

DISM /RestoreHealth Scan

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. Right-click on the Start
    w8start.png
    button and select Command Prompt (Admin)
  2. When command prompt opens, Copy (Ctrl+C) and Paste (Right-click > Paste) the following command into it, then press Enter

    Dism /Online /Cleanup-Image /RestoreHealth

  3. When DISM finishes scanning your component store, zip up and attach your CBS log to your next post:

    C:\Windows\Logs\CBS\CBS.log

If the zip file is larger than 8MB, please use a file sharing service such as OneDrive, DropBox, SendSpace, etc. and include the link with your reply.
 
Thank you once more for your help. I used your second fix and this is the output:
Code:
SFCFix version 3.0.0.0 by niemiro.
Start time: 2016-10-21 12:46:32.581
Microsoft Windows 10 Build 14393 - amd64
Using .zip script file at C:\Users\meltdown\Desktop\SFCFix.zip [0]




PowerCopy::
Successfully took permissions for file or folder C:\WINDOWS\winsxs\x86_microsoft-windows-directx-graphics-tools_31bf3856ad364e35_10.0.14393.0_none_0114eecbba86085c\dxcapturereplay.dll
Successfully took permissions for file or folder C:\WINDOWS\winsxs\amd64_microsoft-windows-s..up-drivepreparation_31bf3856ad364e35_10.0.14393.0_none_ce65f2d67fb01e11\bdehdcfglib.dll
Successfully took permissions for file or folder C:\WINDOWS\winsxs\amd64_microsoft-windows-m..console-nodemanager_31bf3856ad364e35_10.0.14393.0_none_ada428d237baf687\mmcndmgr.dll
Successfully took permissions for file or folder C:\WINDOWS\winsxs\amd64_microsoft-windows-f..ruetype-segoescript_31bf3856ad364e35_10.0.14393.0_none_0239441903c1448e\segoesc.ttf

Successfully copied file C:\Users\meltdown\AppData\Local\niemiro\Archive\winsxs\x86_microsoft-windows-directx-graphics-tools_31bf3856ad364e35_10.0.14393.0_none_0114eecbba86085c\dxcapturereplay.dll to C:\WINDOWS\winsxs\x86_microsoft-windows-directx-graphics-tools_31bf3856ad364e35_10.0.14393.0_none_0114eecbba86085c\dxcapturereplay.dll.
WARNING: File C:\WINDOWS\winsxs\amd64_microsoft-windows-s..up-drivepreparation_31bf3856ad364e35_10.0.14393.0_none_ce65f2d67fb01e11\bdehdcfglib.dll was not backed up as that would replace the current backup.
Successfully copied file C:\Users\meltdown\AppData\Local\niemiro\Archive\winsxs\amd64_microsoft-windows-s..up-drivepreparation_31bf3856ad364e35_10.0.14393.0_none_ce65f2d67fb01e11\bdehdcfglib.dll to C:\WINDOWS\winsxs\amd64_microsoft-windows-s..up-drivepreparation_31bf3856ad364e35_10.0.14393.0_none_ce65f2d67fb01e11\bdehdcfglib.dll.
WARNING: File C:\WINDOWS\winsxs\amd64_microsoft-windows-m..console-nodemanager_31bf3856ad364e35_10.0.14393.0_none_ada428d237baf687\mmcndmgr.dll was not backed up as that would replace the current backup.
Successfully copied file C:\Users\meltdown\AppData\Local\niemiro\Archive\winsxs\amd64_microsoft-windows-m..console-nodemanager_31bf3856ad364e35_10.0.14393.0_none_ada428d237baf687\mmcndmgr.dll to C:\WINDOWS\winsxs\amd64_microsoft-windows-m..console-nodemanager_31bf3856ad364e35_10.0.14393.0_none_ada428d237baf687\mmcndmgr.dll.
WARNING: File C:\WINDOWS\winsxs\amd64_microsoft-windows-f..ruetype-segoescript_31bf3856ad364e35_10.0.14393.0_none_0239441903c1448e\segoesc.ttf was not backed up as that would replace the current backup.
Successfully copied file C:\Users\meltdown\AppData\Local\niemiro\Archive\winsxs\amd64_microsoft-windows-f..ruetype-segoescript_31bf3856ad364e35_10.0.14393.0_none_0239441903c1448e\segoesc.ttf to C:\WINDOWS\winsxs\amd64_microsoft-windows-f..ruetype-segoescript_31bf3856ad364e35_10.0.14393.0_none_0239441903c1448e\segoesc.ttf.

Successfully restored ownership for C:\WINDOWS\winsxs\x86_microsoft-windows-directx-graphics-tools_31bf3856ad364e35_10.0.14393.0_none_0114eecbba86085c\dxcapturereplay.dll
Successfully restored permissions on C:\WINDOWS\winsxs\x86_microsoft-windows-directx-graphics-tools_31bf3856ad364e35_10.0.14393.0_none_0114eecbba86085c\dxcapturereplay.dll
Successfully restored ownership for C:\WINDOWS\winsxs\amd64_microsoft-windows-s..up-drivepreparation_31bf3856ad364e35_10.0.14393.0_none_ce65f2d67fb01e11\bdehdcfglib.dll
Successfully restored permissions on C:\WINDOWS\winsxs\amd64_microsoft-windows-s..up-drivepreparation_31bf3856ad364e35_10.0.14393.0_none_ce65f2d67fb01e11\bdehdcfglib.dll
Successfully restored ownership for C:\WINDOWS\winsxs\amd64_microsoft-windows-m..console-nodemanager_31bf3856ad364e35_10.0.14393.0_none_ada428d237baf687\mmcndmgr.dll
Successfully restored permissions on C:\WINDOWS\winsxs\amd64_microsoft-windows-m..console-nodemanager_31bf3856ad364e35_10.0.14393.0_none_ada428d237baf687\mmcndmgr.dll
Successfully restored ownership for C:\WINDOWS\winsxs\amd64_microsoft-windows-f..ruetype-segoescript_31bf3856ad364e35_10.0.14393.0_none_0239441903c1448e\segoesc.ttf
Successfully restored permissions on C:\WINDOWS\winsxs\amd64_microsoft-windows-f..ruetype-segoescript_31bf3856ad364e35_10.0.14393.0_none_0239441903c1448e\segoesc.ttf
PowerCopy:: directive completed successfully.




Successfully processed all directives.
SFCFix version 3.0.0.0 by niemiro has completed.
Currently storing 10 datablocks.
Finish time: 2016-10-21 12:46:33.343
Script hash: Llf5GySZKUXFk3GRbJ2g3hya+cB0S4mp/TzmrqgS3z0=
----------------------EOF-----------------------

I ran the dism command and have attached the CBS.log file as instructed.
 

Attachments

Hi, i seem to be running into the same issue as the OP, SFCFix crashes when i try to run it CBS.log attached.
 

Attachments

Looks like there's something unusual going on. I'd like to take a look at the registry.

Export Component Based Servicing

  1. Click on the Start button and in the search box, type regedit
  2. When you see regedit on the list, right-click on it and select Run as administrator
  3. When regedit opens, using the left pane, navigate to the following registry key and select it by clicking on it once.

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\
  4. Once selected, click File > Export....
  5. Change the Save as type: to Registry Hive Files (*.*)
  6. Name this file ComponentBasedServicing (with no file extension) and save it to your Desktop.
  7. Right Click on the ComponentBasedServicing file on your Desktop and choose Send To -> Compressed (Zipped) Folder.

Once done please upload ComponentBasedServicing.zip via DropBox OneDrive or SendSpace

Please manually upload the components hive by following these instructions:

Upload Components Hive
  1. Navigate to C:\Windows\System32\config
  2. Right-click on the current COMPONENTS file and select copy
    Note: If you get an error that the file is in use, reboot your computer and then try again.
  3. Right-click on your Desktop and select paste
  4. Right-click on the COMPONENTS file on your Desktop and select Send To -> Compressed (zipped) Folder
  5. Upload the zip from your Desktop to a file sharing service such as DropBox, OneDrive, SendSpace, etc. and include the link with your reply.
 
I've attached the Components Based Servicing portion of the registry. Here is the COMPONENTS file (zip compressed): *removed*
 

Attachments

Last edited by a moderator:
Sorry if the previous file share site wasn't working. I keep getting errors when uploading the file to sendspace for some reason. Here is one using zippyshare which seems a bit more reliable:
Zippyshare.com - COMPONENTS.zip

Let me know if this is problematic.
 
I see some problems with one of the cumulative updates. Has this machine ever bluescreened or been shut off unexpectedly during an update?
 
No I don't think so. Is it possible to reinstall the cumulative update to fix this?
 
Let's give it a shot:

Install Update with DISM

  1. Download the update MSU here: http://download.windowsupdate.com/c..._8bc6befc7b3c51f94ae70b8d1d9a249bb4b5e108.msu
  2. Copy the MSU file to a convenient location (such as C:\temp).
  3. Click on the Start
    Start%20Orb.jpg
    button and in the search box, type Command Prompt
  4. When you see Command Prompt on the list, right-click on it and select Run as administrator
  5. When command prompt opens, copy and paste the following commands into it, press enter after each

    cd C:\temp

    replace C:\temp with your path if different

    expand {update name}.msu -f:* C:\temp

    replace {update name} with the name of the MSU file downloaded in step 1

    DISM.exe /Online /Add-Package /PackagePath:C:\temp\{update name}.cab
  6. You should receive the message:
    The operation completed successfully.
  7. Make sure to allow the computer to restart if prompted.

    If you receive any other message:
  8. Right-click on the Command Prompt window and click Select All, this will invert all of the colours by selecting the text, now press enter. All of this text is now copied.
  9. Paste (Ctrl+V) it into your next post please.

If the update fails to install, zip and attach C:\Windows\Logs\CBS\CBS.log with your reply.
 
Unfortunately the update failed. :(

Code:
Microsoft Windows [Version 10.0.14393]
(c) 2016 Microsoft Corporation. All rights reserved.

C:\WINDOWS\system32>cd \

C:\>cd temp

C:\temp>expand windows10.0-kb3194798-x64_8bc6befc7b3c51f94ae70b8d1d9a249bb4b5e108.msu -f:* c:\temp
Microsoft (R) File Expansion Utility
Copyright (c) Microsoft Corporation. All rights reserved.

Adding c:\temp\WSUSSCAN.cab to Extraction Queue
Adding c:\temp\Windows10.0-KB3194798-x64.cab to Extraction Queue
Adding c:\temp\Windows10.0-KB3194798-x64-pkgProperties.txt to Extraction Queue
Adding c:\temp\Windows10.0-KB3194798-x64.xml to Extraction Queue

Expanding Files ....
Progress: 1 out of 4 files
Expanding Files Complete ...
4 files total.

C:\temp>dism.exe /online /add-package /packagepath:c:\temp\Windows10.0-KB3194798-x64.cab

Deployment Image Servicing and Management tool
Version: 10.0.14393.0

Image Version: 10.0.14393.0

Processing 1 of 1 - Adding package Package_for_RollupFix~31bf3856ad364e35~amd64~~14393.321.1.5
[==========================100.0%==========================]
An error occurred - Package_for_RollupFix Error: 0x80073712

Error: 14098

The component store has been corrupted.

The DISM log file can be found at C:\WINDOWS\Logs\DISM\dism.log

C:\temp>

I've attached zipped copies of both CBS.log and dism.log in hopes that these will help.
 

Attachments

Code:
2016-10-27 18:56:18, Error                 CSI    00000653@2016/10/27:22:56:18.400 (F) onecore\base\wcp\componentstore\versionedindex.cpp(3705): Store corruption detected in function ComponentStore::CRawStoreLayout::CheckFamilyIndexForDeadWinnerComponent expression: (null)
  MissingWinningComponentKey on resource 'amd64_microsoft-windows-b..iagnostic.resources_31bf3856ad364e35_10.0.14393.187_ko-kr_c2d23862d8cbf2ce'[gle=0x80004005]

Try repeating the extraction and DISM installation with this update: http://download.windowsupdate.com/c..._171738fb9de59d92ccc90c3c0788afa2a3625f61.msu
 
Code:
Microsoft Windows [Version 10.0.14393]
(c) 2016 Microsoft Corporation. All rights reserved.

C:\WINDOWS\system32>cd \

C:\>mkdir temp2

C:\>cd temp2

C:\temp2>expand windows10.0-kb3193494-x64_171738fb9de59d92ccc90c3c0788afa2a3625f61.msu -f:* c:\temp2
Microsoft (R) File Expansion Utility
Copyright (c) Microsoft Corporation. All rights reserved.

Adding c:\temp2\WSUSSCAN.cab to Extraction Queue
Adding c:\temp2\Windows10.0-KB3193494-x64.cab to Extraction Queue
Adding c:\temp2\Windows10.0-KB3193494-x64-pkgProperties.txt to Extraction Queue
Adding c:\temp2\Windows10.0-KB3193494-x64.xml to Extraction Queue

Expanding Files ....

Expanding Files Complete ...
4 files total.

C:\temp2>dism.exe /online /add-package /packagepath:c:\temp2\Windows10.0-KB3193494-x64.cab

Deployment Image Servicing and Management tool
Version: 10.0.14393.0

Image Version: 10.0.14393.0

Processing 1 of 1 - Adding package Package_for_RollupFix~31bf3856ad364e35~amd64~~14393.187.1.0
[==========================100.0%==========================]
An error occurred - Package_for_RollupFix Error: 0x80073712

Error: 14098

The component store has been corrupted.

The DISM log file can be found at C:\WINDOWS\Logs\DISM\dism.log

C:\temp2>
 

Attachments

Please create a System Restore point and back up any important data before continuing.

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.

View attachment SFCFix.zip

Once SFCFix has completed, try installing KB3193494 again with DISM (dism.exe /online /add-package /packagepath:c:\temp2\Windows10.0-KB3193494-x64.cab).
 
Back
Top