[SOLVED] Windows 2016 / Exchange Server SFC Fix fail on single file hash failure.

opjose

New member
Joined
Mar 13, 2021
Posts
3
Hi

I am currently experiencing a small problem trying to run SFC /SCANNOW on a Windows 2016 Virtual Hyper-V Client server that is running Exchange 2016.

The issue seems to be related to a single .NET4 file with a mismatched hash.

DISM reports no image problems and "restorehealth" works fine.

I am unable to run SFCFix on this server as it crashes with an unknown exception error.
So I utilized Powershell to create the relevant files.

I first cleared the existing CBS.LOG and DISM log files.

I then ran DISM /Online /cleanup-image /restorehealth which completed successfully.

Next I then ran SFC /VERIFYONLY

I created the attached file using the following Powershell commaands.

ni -ItemType Directory $env:SystemDrive\PSLogs\SfcDism\ | Out-Null
cpi -Path $env:windir\Logs\CBS\*.log -Destination $env:SystemDrive\PSLogs\SfcDism\
findstr /c:"[SR]" $env:windir\logs\CBS\cbs.log > $env:SystemDrive\PSLogs\SfcDism\sfcdetails.txt
cpi -Path $env:windir\Logs\DISM\*.log -Destination $env:SystemDrive\PSLogs\SfcDism\
Compress-Archive -Force -Path $env:SystemDrive\PSLogs -DestinationPath $env:SystemDrive\PSLogs.zip

I notice that there is only one reported problem.

Cannot repair member file [l:16]'ServiceModel.mof' of NetFx4-ServiceModel_mof_files, version 4.0.15744.970

How can I fix this manually since SFCFIX does not run?
I do have other 2016 servers that pass the SFC /SCANNOW routines.

Thank you!
 

Attachments

Also the component scanner reports no errors nor corruption.

Thanks!
 
Hi and welcome to Sysnative,

Step 1. Download
56f31e53c97da-SFCFix.PNG
SFCFix and save it to your desktop.

Warning: This fix was written specifically for this system. Do not run this fix on another system.
  • Save any work you have open, and close all programs.
  • Download the attachment SFCFix.zip and save it to your desktop.
  • Drag the SFCFix.zip file over the SFCFix.exe executable and release it.
6190d993a26f3-SFCFix-Zip-Eng.gif

  • SFCFix will launch, let it complete.
  • Once done, a file will appear on your desktop, called SFCFix.txt.
  • Post the logfile (SFCFix.txt) as attachment in your next reply.


Step 2. Run the System File Checker and post the result. If it fails attach a new copy of the CBS log. (But don't remove anything from the existing log files).
Code:
SFC /Scannow
 

Attachments

That was a work of art!

Thank you for the help.

Out of curiosity do you keep a repository of all of these files somewhere?


PowerCopy::
Successfully took permissions for file or folder C:\WINDOWS\WinSxS\amd64_netfx4-servicemodel_mof_files_b03f5f7f11d50a3a_4.0.15744.970_none_514e7886b3099f5e\ServiceModel.mof

Successfully copied file C:\Users\administrator.PALEY\AppData\Local\niemiro\Archive\WinSxS\amd64_netfx4-servicemodel_mof_files_b03f5f7f11d50a3a_4.0.15744.970_none_514e7886b3099f5e\ServiceModel.mof to C:\WINDOWS\WinSxS\amd64_netfx4-servicemodel_mof_files_b03f5f7f11d50a3a_4.0.15744.970_none_514e7886b3099f5e\ServiceModel.mof.

Successfully restored ownership for C:\WINDOWS\WinSxS\amd64_netfx4-servicemodel_mof_files_b03f5f7f11d50a3a_4.0.15744.970_none_514e7886b3099f5e\ServiceModel.mof
Successfully restored permissions on C:\WINDOWS\WinSxS\amd64_netfx4-servicemodel_mof_files_b03f5f7f11d50a3a_4.0.15744.970_none_514e7886b3099f5e\ServiceModel.mof
PowerCopy:: directive completed successfully.

Successfully processed all directives.
SFCFix version 3.0.2.1 by niemiro has completed.

SFC /SCANNOW ran without issues after that.
 
Hi,

You're welcome. Glad to hear the problem is fixed. I'll mark this thread as solved.
Out of curiosity do you keep a repository of all of these files somewhere?
I have multiple VM's running as a source for replacement files.
 

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

Back
Top