[SOLVED] Error running SFCFix.exe

WebMaximus

Contributor
Joined
Sep 26, 2018
Posts
32
First post in here. Just found your site via a Google search and seeems to be a great one! Asked about my issue elsewhere but up to this point no one has been able to help me fix my issue so no pressure guys :lol:

I have an issue where sfc /scannow keeps telling me it couldn't repair some files. Checking the CBS.log file, the problem seems to be related to a file called storport.sys located in the %windir%\System32\Drivers folder.

Here are some of the lines from CBS.log:

Code:
[COLOR=#000000][FONT='inherit'][I]2018-09-27 03:32:06, Info                  CSI    00003385 Hashes for file member [l:12]'storport.sys' do not match.[/I]
[I] Expected: {l:32 b:163423f1d9ab4271ee997536a78b2d7b0472a15c1a45c608b0a0fed49fc6ed3c}.[/I]
[I] Actual: {l:32 b:aa7b4cda0cf8a3ff42c4d438612d32d69b2a249811eb91beed734b295355edfb}.[/I]
[/FONT][/COLOR]
[COLOR=#000000][FONT='inherit'][I]
2018-09-27 03:32:06, Info                  CSI    00003386 [SR] Cannot repair member file [l:12]'storport.sys' of Microsoft-Windows-StorPort, version 10.0.17134.137, arch amd64, nonSxS, pkt {l:8 b:31bf3856ad364e35} in the store, hash mismatch[/I]
[/FONT][/COLOR]
[COLOR=#000000][FONT='inherit'][I]
2018-09-27 03:32:06, Info                  CSI    00003387 [SR] This component was referenced by [l:80]'Package_1037_for_KB4458469~31bf3856ad364e35~amd64~~10.0.2.2.4458469-2210_neutral'[/I]
[/FONT][/COLOR]
[COLOR=#000000][FONT='inherit'][I]
2018-09-27 03:32:06, Info                  CSI    00003388 Hashes for file member [l:12]'storport.sys' do not match.[/I]
[I] Expected: {l:32 ml:4096 b:163423f1d9ab4271ee997536a78b2d7b0472a15c1a45c608b0a0fed49fc6ed3c}.[/I]
[I] Actual: {l:32 b:aa7b4cda0cf8a3ff42c4d438612d32d69b2a249811eb91beed734b295355edfb}.[/I]
[/FONT][/COLOR]
[COLOR=#000000][FONT='inherit'][I]
2018-09-27 03:32:06, Info                  CSI    00003389 Hashes for file member [l:12]'storport.sys' do not match.[/I]
[I] Expected: {l:32 ml:4096 b:163423f1d9ab4271ee997536a78b2d7b0472a15c1a45c608b0a0fed49fc6ed3c}.[/I]
[I] Actual: {l:32 b:aa7b4cda0cf8a3ff42c4d438612d32d69b2a249811eb91beed734b295355edfb}.[/I]
[/FONT][/COLOR]
[COLOR=#000000][FONT='inherit'][I]
2018-09-27 03:32:06, Info                  CSI    0000338a [SR] Could not reproject corrupted file \??\C:\WINDOWS\System32\Drivers\\storport.sys; source file in store is also corrupted[/I][/FONT][/COLOR]
I downloaded SFCFix but it fails with the below error message. First I though it might be my AV software messing but still issue even when disabled. Did run SFCFix as administrator. I chose to allow SFCFix to submit a crash report.

SFCFix Has Crashed


Something has gone horribly wrong and SFCFix has crashed. Would you like SFCFix
to submit a crash report to the developer so that this problem can be fixed?
Type "y" for yes or "n" for no and press enter to continue:

Edited to add my Windows version is 10.0.17134.320.
 
Last edited:
Just want to add one thing I forgot to mention in my post above.

Booting into safe mode, SFC doesn't report any issues. It will only fail when booting Windows into normal mode.
 
Very happy to report I finally managed to sort this issue and sure enough storport.sys was the culprit!


I actually had 3 copies of that file where one of them was considerably smaller than the other 2 copies. Still, the company in the details of the file was Microsoft Corporation. So it did appear like a valid copy of the file. The smallest file was 34.6 kB wheras the other two copies of the file were 548 kB each.


Anyways, after some hassle taking ownership of the smallest file and the folder where it was located I was able to replace it with a copy of the storport.sys file located in %windir%\System32\Drivers.


I then rebooted my PC and ran SFC followed by DISM and what do you know...both of them now finished successfully! I finished off by resetting the owner of both the folder and the new copy of the file back to TrustedInstaller.
 
Looks like I was a bit too fast celebrating...now after another reboot I'm back having the very same issue with references to storport.sys in CBS.log even when I now have the same sized storport.sys file in all three locations.

Since I don't experience any actual issues other than seeing sfc /scannow reporting corrupt files I guess the easiest thing would be to simply forget about all of this. Still a bit frustrating and annoying to let it go unsolved considering all time I already spent trying to fix it.

If you have any ideas, please let me know!
 
Thanks for trying to help me!

Attached are two versions of the CBS.log. One after running sfc in Windows normal mode when I have the problem and one after running sfc in Windows safe mode when I don't have the problem.

That fact is something that really puzzles me...how can corrupt files only be corrupt in normal mode but not in safe mode? Would like to think the files would be the same regardless what mode Windows is running in?
 

Attachments

The fact that the results are inconsistent makes me think that the corruption was not in fact resolved.

All the steps are to be performed in Normal mode and in Normal mode only.

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:
    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

Amazing, problem fixed !!

You guys are like magicians!

Trying to figure out what you actually did and from what I can tell you copied a new copy of storport.sys to my system and made sure all permissions were set correctly?

Anyways, here's SFCFix.txt:

Code:
SFCFix version 3.0.0.0 by niemiro.
Start time: 2018-09-27 20:04:15.648
Microsoft Windows 10 Build 17134 - amd64
Using .zip script file at C:\Users\Richard\Desktop\SFCFix.zip [0]








PowerCopy::
Successfully took permissions for file or folder C:\WINDOWS\winsxs\amd64_microsoft-windows-storport_31bf3856ad364e35_10.0.17134.137_none_09336dfc8637bd5b\storport.sys


Successfully copied file C:\Users\Richard\AppData\Local\niemiro\Archive\winsxs\amd64_microsoft-windows-storport_31bf3856ad364e35_10.0.17134.137_none_09336dfc8637bd5b\storport.sys to C:\WINDOWS\winsxs\amd64_microsoft-windows-storport_31bf3856ad364e35_10.0.17134.137_none_09336dfc8637bd5b\storport.sys.


Successfully restored ownership for C:\WINDOWS\winsxs\amd64_microsoft-windows-storport_31bf3856ad364e35_10.0.17134.137_none_09336dfc8637bd5b\storport.sys
Successfully restored permissions on C:\WINDOWS\winsxs\amd64_microsoft-windows-storport_31bf3856ad364e35_10.0.17134.137_none_09336dfc8637bd5b\storport.sys
PowerCopy:: directive completed successfully.








Successfully processed all directives.
SFCFix version 3.0.0.0 by niemiro has completed.
Currently storing 1 datablocks.
Finish time: 2018-09-27 20:04:15.980
Script hash: UQQ/rGJMm74qbrQV2jwId+Cln0QHJsbG7fSGP+uLz50=
----------------------EOF-----------------------

CBS.log attached as a zip file due to its size not suitable to paste here.
 

Attachments

Truly amazing how you solved my issue this quickly after I struggled myself for two days. And I'm not a computer rookie. I'm really impressed!!

Your site is now bookmarked and a donation is coming your way.

Thanks!!
 

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

Back
Top