[SOLVED] sfc /scannow and Windows Update not working

mikepf

Member
Joined
Sep 13, 2016
Posts
24
Location
Germany
Hi,

have a Win 7 x64 machine that BSD a couple of times due to a bad RAM.
RAM has been replaced and the system is stable now. Still Windows Update is not working

Tried sfc /scannow

Stops after a few seconds
"Windows Resource Protection could not perform the requested operation"

Ran Windows Update Readyness
Found corruption under the COMPONENTS tree (3 keys had illegal characters) and fixed that.
Still no joy...

Errors in CheckSUR.log:
Checking Component Store
(f) CSI Missing Identity 0x00000000 identity amd64_microsoft-windows-c..graphy-cryptoconfig_31bf3856ad364e35_6.1.7601.23037_none_04ee2cbccc359310
(f) CSI Missing Identity 0x00000000 identity amd64_microsoft-windows-c..graphy-cryptoconfig_31bf3856ad364e35_6.1.7601.18833_none_0460b6a7b31b5aa8
(f) CSI C Mark Deployment Missing 0x00000000 c!c7b98069ad0..249271e520c_31bf3856ad364e35_6.1.7601.23109_52000be394fc30d5 x86_microsoft-windows-a..on-authui.resources_31bf3856ad364e35_6.1.7601.23109_fr-fr_30a00b580755e00b
Summary:
Seconds executed: 820
Found 3 errors
CSI Missing Identity Total count: 2
CSI C Mark Deployment Missing Total count: 1


SFCFix.txt:
SFCFix version 3.0.0.0 by niemiro.
Start time: 2016-09-13 15:46:52.316
Microsoft Windows 7 Service Pack 1 - amd64
Not using a script file.


AutoAnalysis::
SUMMARY: Some corruptions could not be fixed automatically. Seek advice from helper or sysnative.com.
CBS & SFC total detected corruption count: 0
CBS & SFC total unimportant corruption count: 0
CBS & SFC total fixed corruption count: 0
SURT total detected corruption count: 3
SURT total unimportant corruption count: 0
SURT total fixed corruption count: 0
AutoAnalysis:: directive completed successfully.


Successfully processed all directives.
SFCFix version 3.0.0.0 by niemiro has completed.
Currently storing 0 datablocks.
Finish time: 2016-09-13 15:48:30.111
----------------------EOF-----------------------

CBS folder attached.

Thanks for any help you can provide.
 
Hello and welcome

Due to the precise nature of your corruption, you will receive help from a user named PeterJ. He's one of our senior trainees here who's in his final phrase of his studies and needs to gain some real world experience in specific areas of Windows Update. This means that he'll be assisting you, but that I will first need to double check and approve his fixes before he posts them to you. If anything this is a good thing for you because it means that you've got at least two of us watching over your thread, but it will unfortunately add a slight delay between each reply. I hope that you understand and can accept the need for us to train up new members in this way in order to carry on doing what we do here, however, if for any reason you object to this setup, I will happily take on your thread myself.

Thank you very much for your understanding. We'll be with you very shortly.
 
Hi Brian,

thats fine with me. I'm glad to get help here.
I won't be on site next week so there will be enough delay on my side ;-)

Mike
 
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. If you need assistance with an issue, please start a new thread and someone will assist you shortly.


  • 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

SFCFix version 3.0.0.0 by niemiro.
Start time: 2016-09-20 12:11:31.609
Microsoft Windows 7 Service Pack 1 - amd64
Using .txt script file at SFCFixScript.txt [0]


Trace::
Successfully traced component amd64_microsoft-windows-c..graphy-cryptoconfig_31bf3856ad364e35_6.1.7601.23037_none_04ee2cbccc359310.
Package_50_for_KB3061518~31bf3856ad364e35~amd64~~6.1.1.0.3061518-172_neutral_GDR3
Successfully traced component amd64_microsoft-windows-c..graphy-cryptoconfig_31bf3856ad364e35_6.1.7601.18833_none_0460b6a7b31b5aa8.
Package_50_for_KB3061518~31bf3856ad364e35~amd64~~6.1.1.0.3061518-172_neutral_GDR3
Failed to trace component x86_microsoft-windows-a..on-authui.resources_31bf3856ad364e35_6.1.7601.23109_fr-fr_30a00b580755e00b with return code -2.
Trace:: directive completed successfully.


Successfully processed all directives.
SFCFix version 3.0.0.0 by niemiro has completed.
Currently storing 0 datablocks.
Finish time: 2016-09-20 12:11:47.177
Script hash: S1EADH2MMH7AQhK1nsZiHkftOBdJIjJ/HcsHu1S3JAU=
----------------------EOF-----------------------
 
Please do following:

Retrieve 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 SendSpace 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 Dropbox or One Drive or SendSpace and then just provide the link in your reply.
  • You can close any open windows you have as well as the RegBak program now.
 
Sorry, unable to use any file hoster from here.
Therefore I've splitted the rar in 5 pieces.
Since I expected you might need the components hive already copied it from the System when I created the first post.
I don't believe something has changed since then.

Regards,
Mike
 

Attachments

Please follow the instructions below:

Download the attachment fix.zip and save it to your desktop.
Right-click the downloaded file and select Extract all. Follow the instructions appearing.
The file fix.reg will be shown afterwards. Double-click it.
You might get a UAC warning message, allow it to run.
Next, a popup message from "Registry-Editor" appears, asking "Are you sure you want to continue ?". Click Yes.
 

Attachments

Down to one error:


=================================
Checking System Update Readiness.
Binary Version 6.1.7601.22471
Package Version 26.0
2016-09-27 10:51
Checking Windows Servicing Packages
Checking Package Manifests and Catalogs
Checking Package Watchlist
Checking Component Watchlist
Checking Packages
Checking Component Store
(f) CSI C Mark Deployment Missing 0x00000000 c!c7b98069ad0..249271e520c_31bf3856ad364e35_6.1.7601.23109_52000be394fc30d5 x86_microsoft-windows-a..on-authui.resources_31bf3856ad364e35_6.1.7601.23109_fr-fr_30a00b580755e00b
Summary:
Seconds executed: 752
Found 1 errors
CSI C Mark Deployment Missing Total count: 1
 
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. If you need assistance with an issue, please start a new thread and someone will assist you shortly.


  • Download
    myjIXnC.png
    SFCFix and move the executable to your desktop.
  • Download the attachment SFCFixScript2.txt and save it on your desktop.
  • Save any work you have open, and close all programs.
  • Drag the SFCFixScript2.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

Ran script, ran Windows Update Readiness, CheckSUR.log shows no more errors.
sfc /scannow still fails and Windows Update errors with 0x80070002...
Removed C:\Windows\SoftwareDistribution and WindowsUpdate registry key... still no success....

Logs attached
 

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. If you need assistance with an issue, please start a new thread and someone will assist you shortly.


  • Download
    myjIXnC.png
    SFCFix and move the executable to your desktop.
  • Download the attachment SFCFixScript3.txt and save it on your desktop.
  • Save any work you have open, and close all programs.
  • Drag the SFCFixScript3.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

Thanks for your help. Bad news: SFCFix seems to be unable to delete the key
HKEY_LOCAL_MACHINE\COMPONENTS\DerivedData\VersionedIndex\6.1.7601.18766 (win7sp1_gdr.150217-1551)\ComponentFamilies\amd64_cc3caf57a89843a51cda56f6a734a89c_31bf3856ad364e35_none_6d5ee479df1e1585

The resulting SFCFix log shows no error but the corrupted subkey is still there. I tried to delete it manually via regedit but I get "error deleting key, unable to find file".
 
Please do following:

Retrieve 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 SendSpace 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 Dropbox or One Drive or SendSpace and then just provide the link in your reply.
  • You can close any open windows you have as well as the RegBak program now.
 
Please do following:

Replace Components Hive

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 COMPONENTS.ZIP and save it to your desktop.
  2. Right-click on it and select Extract all.... Make sure the "Show extracted files when complete" is checked and click Extract.
  3. Now we have the COMPONENTS file that we will be using to replace your current one.
  4. Navigate to C:\Windows\System32\config
  5. Right-click on the current COMPONENTS file and select rename. Rename it to COMPONENTS.bad.
    Note: If you get an error that the file is in use, reboot your computer and then try again.
  6. Take the file from the Components folder on your desktop and paste it into C:\Windows\System32\config

How does sfc /scannow and Windows Update run now ?
If sfc /scannow prduces an error, attach the CBS.log
 
PeterJ thanks a lot!!

sfc /scannow works, Windows Update works!

Was a bit nervous since the components file you sent back was so much smaller than the original one ...
How did you fix the corruption? I've tried to edit it with RawReg but it stopped working when I tried to access the corrupted part.
 
Sounds good. We are almost done.
We need to replace the COMPONENTS hive one's again as there are still some corruptions to repair.
Please do following:

Replace Components Hive

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 COMPONENTS.ZIP and save it to your desktop. Replace the existing one.
  2. Right-click on it and select Extract all.... Make sure the "Show extracted files when complete" is checked and click Extract.
  3. Now we have the COMPONENTS file that we will be using to replace your current one.
  4. Navigate to C:\Windows\System32\config
  5. Right-click on the current COMPONENTS file and select rename. Rename it to COMPONENTS.bad.
    Note: If you get an error that the file is in use, reboot your computer and then try again.
  6. Take the file from the Components folder on your desktop and paste it into C:\Windows\System32\config

sfc /scannow and Windows Update still runs fine ?
If sfc /scannow produces an error, attach the CBS.log
 

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

Back
Top