SFC and DISM Not Working on Server 2012 R2

arremondo

Contributor
Joined
Oct 22, 2023
Posts
353
I am having difficulty running SFC /scannow and the DSIM utility. DISM gives an error "1812 An initialization error occurred" and SFC Gives the error "Windows Resurce Protection could not start the repair service." I have tried all the "fixes" I found through a Google search and nothing worked. I think i narrowed it down to the error "DISM OS Provider: PID=6224 TID=7000 Failed trying to determine the OS Version" from the DISM log and it further relates to the folder "amd64_microsoft-windows-servicingstack_31bf3856ad364e35_6.3.9600.19991_none_fa0fb7959b4c8c91" in the C:\Windows\WinSXS folder and the accompanying registry entry. I tried running both SFCfix and the ComponentsScanner. They both completed without making any changes. I have attached the ComponentsScanner.txt file and the zip of the CBS folder to this thread.

I accidentally posted this in the Windows update thread but I don't know how to move it so I just recreated this one. I really need some help on this.
 

Attachments

Hello and welcome,

Provide the Components Hive
1. Navigate to C:\Windows\System32\Config and locate the COMPONENTS file.
2. Please copy this file to your desktop.
Note: If you receive an error that this file is in-use, simply reboot your computer and try again. Note: If you find that you need to reboot and are unable to because this is a server then try Option#2 below.
3. Right-click on this file on your desktop and select Send To...Compressed (zipped) folder. This will create a file named COMPONENTS.ZIP on your desktop.
4. The file will likely be too large to upload here so please upload to Gofile or WeTransfer and just provide the link here.


Option#2 (only if you are unable to follow the previous instructions)

  • Please download the Freeware RegBak from here: Acelogix Software - Download products
    You will find it at the bottom of the page that the link brings you to.
  • Go ahead and install this program and accept all the defaults. After the last install screen the program should open.
  • Click the New Backup button. Accept the defaults and simply click Start.
  • When it says Finished successfully, click the Close button.
  • This will bring you back to the main screen of the program. You will see one entry in this list with the date that you did it. Right-click on this line-item and select Explore Backup...
  • This will bring you into the folder where the backup was made. You should see a Users folder and a Windows folder along with a couple other files. Double-click on the Windows folder to open it. Then open the System32 folder and then config folder. You should see around 6 files in here, one of which is named COMPONENTS.
  • Copy the COMPONENTS file to your Desktop. If the COMPONENTS file does not exist, please fetch it instead from C:\Windows\System32\config\COMPONENTS.
  • Now right-click on the COMPONENTS file that is on your desktop and select Send to > Compressed (zipped) folder.
  • Then please upload the zip file (COMPONENTS.zip) to your favourite file sharing website (it will be too big to upload here). Examples of services to upload to are Gofile or WeTransfer and then just provide the link in your reply.
  • You can close any open windows you have as well as the RegBak program now.
 
Follow the instructions below please.

WARNING! The following fix is specific to the user's system in this thread only. No one else should follow these instructions, as it could damage your system.
  • Download
    myjIXnC.png
    SFCFix and move the executable to your desktop.
  • Download the attachment SFCFixScript.txt and save it on your desktop.
  • Save any work you have open, and close all programs.
  • Drag the SFCFixScript.txt file over the SFCFix.exe executable and release it.
    1p8eDnI.gif
  • SFCFix will launch, let it complete.
  • Once done, a file will appear on your desktop, called SFCFix.txt.
  • Open the file, then copy and paste its content in your next reply.
 

Attachments

The content is below:

__________________________

SFCFix version 3.0.2.1 by niemiro.
Start time: 2024-03-25 15:41:48.816
Microsoft Windows Server 2012 R2 Update 3 - amd64
Using .txt script file at \\DC2\Users\ITNSPro\Desktop\SFCFixScript.txt [0]




RegistryScript::
Successfully took ownership and permissions for registry key HKEY_LOCAL_MACHINE\COMPONENTS\DerivedData\Components\amd64_microsoft-windows-servicingstack_31bf3856ad364e35_6.3.9600.19991_none_fa0fb7959b4c8c91.

Successfully imported registry key HKEY_LOCAL_MACHINE\COMPONENTS\DerivedData\Components\amd64_microsoft-windows-servicingstack_31bf3856ad364e35_6.3.9600.19991_none_fa0fb7959b4c8c91.

Successfully restored ownership and permissions for registry key HKEY_LOCAL_MACHINE\COMPONENTS\DerivedData\Components\amd64_microsoft-windows-servicingstack_31bf3856ad364e35_6.3.9600.19991_none_fa0fb7959b4c8c91.
RegistryScript:: directive completed successfully.




Successfully processed all directives.



Failed to generate a complete zip file. Upload aborted.


SFCFix version 3.0.2.1 by niemiro has completed.
Currently storing 1 datablocks.
Finish time: 2024-03-25 15:44:27.947
Script hash: lH72XRrBOvc60mmDnV9sB0jvE1XjTvldcqDnFwsOP3g=
----------------------EOF-----------------------

SFC still didn't work, same error.
 
Step 1:
Copy the file C:\Windows\Logs\CBS\cbs.log to your desktop.
Zip the copied file and attach the zipped cbs.log to your next reply.

Step 2:
Restart the machine.
  • Run the tool
    61f7aba7309a1-ComponentsScanner_Icon.png
    ComponentsScanner again.
  • Once complete, a report will be saved to your desktop called ComponentsScanner.txt.
  • Attach that file to your next reply.
 
Step 1:
WARNING! The following fix is specific to the user's system in this thread only. No one else should follow these instructions, as it could damage your system.
  • Download the attachment SFCFix.zip and save it on your desktop.
  • Save any work you have open, and close all programs.
  • Drag the SFCFix.zip file over the SFCFix.exe executable and release it.
    1p8eDnI.gif
  • SFCFix will launch, let it complete.
  • Once done, a file will appear on your desktop, called SFCFix.txt.
  • Open the file, then copy and paste its content in your next reply.

Step 2:
Restart the computer.
Run the command SFC /SCANNOW in an elevated command prompt and report the result.
If it fails, copy the file C:\Windows\Logs\CBS\cbs.log to your desktop.
Zip the copied file and attach the zipped cbs.log to your next reply.
 

Attachments

SFC and DISM both tried to run this time but ultimately both failed. The logs are attached.
 

Attachments

  • SFC_DISM_FAIL.jpg
    SFC_DISM_FAIL.jpg
    133.7 KB · Views: 7
  • CBS.zip
    CBS.zip
    2.5 MB · Views: 1
Something odd happens. The previous log file cbs.log ended on March 25, 2024.
The latest log file cbs.log ended on March 19, 2024 !?

Did you change the system date ?
Is the system date and time correct ?

Run the command SFC /SCANNOW in an elevated command prompt only and report the result. Do NOT run any other tool, like DISM.
If it fails, copy the file C:\Windows\Logs\CBS\cbs.log to your desktop.
Zip the copied file and attach the zipped cbs.log to your next reply.
 
My post got deleted for some reason. On the 28th I reported the following:

SFC failed again with an error, "Windows Resource Protection found corrupt files but was unable to fix some of them."
 

Attachments

Follow the instructions below please.

WARNING! The following fix is specific to the user's system in this thread only. No one else should follow these instructions, as it could damage your system.
  • Download the attachment SFCFixScript.txt and save it on your desktop.
  • Save any work you have open, and close all programs.
  • Drag the SFCFixScript.txt file over the SFCFix.exe executable and release it.
    1p8eDnI.gif
  • SFCFix will launch, let it complete.
  • Once done, a file will appear on your desktop, called SFCFix.txt.
  • Open the file, then copy and paste its content in your next reply.
 

Attachments

SFCFix version 3.0.2.1 by niemiro.
Start time: 2024-03-31 09:31:17.534
Microsoft Windows Server 2012 R2 Update 3 - amd64
Using .txt script file at \\DC2\Users\ITNSPro\Desktop\SFCFixScript.txt [0]




RegistryScript::
Successfully took ownership and permissions for registry key HKEY_LOCAL_MACHINE\COMPONENTS\DerivedData\Components\amd64_microsoft-windows-a..cation-creduibroker_31bf3856ad364e35_6.3.9600.19913_none_bbc3f61ee0f7eacb.

Successfully imported registry key HKEY_LOCAL_MACHINE\COMPONENTS\DerivedData\Components\amd64_microsoft-windows-a..cation-creduibroker_31bf3856ad364e35_6.3.9600.19913_none_bbc3f61ee0f7eacb.

Successfully restored ownership and permissions for registry key HKEY_LOCAL_MACHINE\COMPONENTS\DerivedData\Components\amd64_microsoft-windows-a..cation-creduibroker_31bf3856ad364e35_6.3.9600.19913_none_bbc3f61ee0f7eacb.
RegistryScript:: directive completed successfully.




Successfully processed all directives.
SFCFix version 3.0.2.1 by niemiro has completed.
Currently storing 33 datablocks.
Finish time: 2024-03-31 09:31:17.957
Script hash: Lf1xkq3T+QMMMIr9hDIWo4DKj4GWcC+REqZpQmt+5aE=
----------------------EOF-----------------------
 
Restart the machine.
Run the command SFC /SCANNOW in an elevated command prompt only and report the result. Do NOT run any other tool, like DISM.
If it fails, copy the file C:\Windows\Logs\CBS\cbs.log to your desktop.
Zip the copied file and attach the zipped cbs.log to your next reply.
 
SFC failed again with an error, "Windows Resource Protection found corrupt files but was unable to fix some of them."

See attached CBS log.
 

Attachments

Step 1:
WARNING! The following fix is specific to the user's system in this thread only. No one else should follow these instructions, as it could damage your system.
  • Download the attachment SFCFix.zip and save it on your desktop.
  • Save any work you have open, and close all programs.
  • Drag the SFCFix.zip file over the SFCFix.exe executable and release it.
    1p8eDnI.gif
  • SFCFix will launch, let it complete.
  • Once done, a file will appear on your desktop, called SFCFix.txt.
  • Open the file, then copy and paste its content in your next reply.

Step 2:
FRST Search
  1. Click the Start button and choose Control Panel.
  2. In the upper right corner ensure the View by: is set to Category.
  3. Select the Programs group.
  4. Click the Turn Windows features on or off link. This will bring up the Server Manager dialog.
    Note: This loads your components hive which is what we want. Please keep this dialog open while you perform the remaining steps. You can minimize it if you wish but keep it open.
  5. Download the Farbar Recovery Scan Tool and save it to your Desktop:
    64-bit: Downloading Farbar Recovery Scan Tool
    Note: Your antivirus program may report FRST incorrectly as an infection. If so, disable the real-time protection when downloading and running FRST.

  6. Right-click on the file FRST64.exe and choose Run as administrator.
  7. Copy and paste SearchAll:amd64_microsoft-windows-a..cation-creduibroker_31bf3856ad364e35_6.3.9600.19913_none_bbc3f61ee0f7eacb into the Search box and click the Search Files button.
  8. When the scan is complete, a message will display that 'Search.txt' is saved in the same folder FRST was started from. Notepad will open this file also. Close Notepad and attach the file 'Search.txt' to your next reply.
  9. You may close any remaining open windows now.
 

Attachments

The SFCFix.txt text is below and the search.txt is attached:

-----------------Start------------------

SFCFix version 3.0.2.1 by niemiro.
Start time: 2024-04-02 21:02:52.608
Microsoft Windows Server 2012 R2 Update 3 - amd64
Using .zip script file at \\DC2\Users\ITNSPro\Desktop\SFCFix.zip [0]




PowerCopy::
Successfully took permissions for file or folder C:\Windows\servicing\packages

Successfully copied file C:\Users\ITNSPro\AppData\Local\niemiro\Archive\Package_for_KB4597253~31bf3856ad364e35~amd64~~6.3.1.3377.cat to C:\Windows\servicing\packages\Package_for_KB4597253~31bf3856ad364e35~amd64~~6.3.1.3377.cat.
Successfully copied file C:\Users\ITNSPro\AppData\Local\niemiro\Archive\Package_for_KB4597253~31bf3856ad364e35~amd64~~6.3.1.3377.mum to C:\Windows\servicing\packages\Package_for_KB4597253~31bf3856ad364e35~amd64~~6.3.1.3377.mum.
Successfully copied file C:\Users\ITNSPro\AppData\Local\niemiro\Archive\Package_for_KB4601058~31bf3856ad364e35~amd64~~6.3.1.3396.cat to C:\Windows\servicing\packages\Package_for_KB4601058~31bf3856ad364e35~amd64~~6.3.1.3396.cat.
Successfully copied file C:\Users\ITNSPro\AppData\Local\niemiro\Archive\Package_for_KB4601058~31bf3856ad364e35~amd64~~6.3.1.3396.mum to C:\Windows\servicing\packages\Package_for_KB4601058~31bf3856ad364e35~amd64~~6.3.1.3396.mum.
Successfully copied file C:\Users\ITNSPro\AppData\Local\niemiro\Archive\Package_for_KB5001845~31bf3856ad364e35~amd64~~6.3.1.3415.cat to C:\Windows\servicing\packages\Package_for_KB5001845~31bf3856ad364e35~amd64~~6.3.1.3415.cat.
Successfully copied file C:\Users\ITNSPro\AppData\Local\niemiro\Archive\Package_for_KB5001845~31bf3856ad364e35~amd64~~6.3.1.3415.mum to C:\Windows\servicing\packages\Package_for_KB5001845~31bf3856ad364e35~amd64~~6.3.1.3415.mum.
Successfully copied file C:\Users\ITNSPro\AppData\Local\niemiro\Archive\Package_for_KB5003545~31bf3856ad364e35~amd64~~6.3.1.3445.cat to C:\Windows\servicing\packages\Package_for_KB5003545~31bf3856ad364e35~amd64~~6.3.1.3445.cat.
Successfully copied file C:\Users\ITNSPro\AppData\Local\niemiro\Archive\Package_for_KB5003545~31bf3856ad364e35~amd64~~6.3.1.3445.mum to C:\Windows\servicing\packages\Package_for_KB5003545~31bf3856ad364e35~amd64~~6.3.1.3445.mum.
Successfully copied file C:\Users\ITNSPro\AppData\Local\niemiro\Archive\Package_for_KB5004118~31bf3856ad364e35~amd64~~6.3.1.3460.cat to C:\Windows\servicing\packages\Package_for_KB5004118~31bf3856ad364e35~amd64~~6.3.1.3460.cat.
Successfully copied file C:\Users\ITNSPro\AppData\Local\niemiro\Archive\Package_for_KB5004118~31bf3856ad364e35~amd64~~6.3.1.3460.mum to C:\Windows\servicing\packages\Package_for_KB5004118~31bf3856ad364e35~amd64~~6.3.1.3460.mum.
Successfully copied file C:\Users\ITNSPro\AppData\Local\niemiro\Archive\Package_for_KB5004754~31bf3856ad364e35~amd64~~6.3.1.3475.cat to C:\Windows\servicing\packages\Package_for_KB5004754~31bf3856ad364e35~amd64~~6.3.1.3475.cat.
Successfully copied file C:\Users\ITNSPro\AppData\Local\niemiro\Archive\Package_for_KB5004754~31bf3856ad364e35~amd64~~6.3.1.3475.mum to C:\Windows\servicing\packages\Package_for_KB5004754~31bf3856ad364e35~amd64~~6.3.1.3475.mum.

Successfully restored ownership for C:\Windows\servicing\packages
Successfully restored permissions on C:\Windows\servicing\packages
PowerCopy:: directive completed successfully.




Successfully processed all directives.
SFCFix version 3.0.2.1 by niemiro has completed.
Currently storing 34 datablocks.
Finish time: 2024-04-02 21:02:57.233
Script hash: yvl9IVmFNIL+F4FWHKO/XVJP0WVL+fKzpPgr1udUuiA=
----------------------EOF-----------------------
 

Attachments

WARNING! The following fix is specific to the user's system in this thread only. No one else should follow these instructions, as it could damage your system.
  • Download the attachment SFCFix.zip and save it on your desktop.
  • Save any work you have open, and close all programs.
  • Drag the SFCFix.zip file over the SFCFix.exe executable and release it.
    1p8eDnI.gif
  • SFCFix will launch, let it complete.
  • Once done, a file will appear on your desktop, called SFCFix.txt.
  • Open the file, then copy and paste its content in your next reply.
 

Attachments

SFCFix.txt contents are as follows:

------------Start------------

SFCFix version 3.0.2.1 by niemiro.
Start time: 2024-04-03 17:54:10.502
Microsoft Windows Server 2012 R2 Update 3 - amd64
Using .zip script file at \\DC2\Users\ITNSPro\Desktop\SFCFix.zip [0]




PowerCopy::
Successfully took permissions for file or folder C:\Windows\winsxs

Successfully created directory tree \\?\C:\Windows\winsxs\amd64_microsoft-windows-a..cation-creduibroker_31bf3856ad364e35_6.3.9600.19913_none_bbc3f61ee0f7eacb.

Successfully copied file C:\Users\ITNSPro\AppData\Local\niemiro\Archive\amd64_microsoft-windows-a..cation-creduibroker_31bf3856ad364e35_6.3.9600.19913_none_bbc3f61ee0f7eacb\CredentialUIBroker.exe to C:\Windows\winsxs\amd64_microsoft-windows-a..cation-creduibroker_31bf3856ad364e35_6.3.9600.19913_none_bbc3f61ee0f7eacb\CredentialUIBroker.exe.

Successfully restored ownership for C:\Windows\winsxs
Successfully restored permissions on C:\Windows\winsxs
PowerCopy:: directive completed successfully.




Successfully processed all directives.
SFCFix version 3.0.2.1 by niemiro has completed.
Currently storing 35 datablocks.
Finish time: 2024-04-03 17:54:18.552
Script hash: ykvsrfIlZuubKME7rg0m9oO+jVILC//R9NV1ePoFbM8=
----------------------EOF-----------------------
 
Restart the machine.
Run the command SFC /SCANNOW in an elevated command prompt again and report the result.
If it fails, copy the file C:\Windows\Logs\CBS\cbs.log to your desktop.
Zip the copied file and attach the zipped cbs.log to your next reply.
 
Back
Top