Windows Update Fails Repeatedly

Maggie

Member
Joined
Apr 30, 2015
Posts
9
Hello everyone,

I have had some issues with my laptop for some time, to the point where I had to refresh my Win 8 system. Everything was fine for a week or so, but now Windows updates cannot be carried out, I get different error messages every single time. I tried everything in my power that I found on the internet:

1. Windows update troubleshooting: it always shows that some error has been fixed, but updating still doesn't work afterwards.

2. Sfc scan: I get the message 'Windows Resource Protection could not perform the requested operation'.

3. A few dism.exe commands, which always show error code 1009 (I am attaching the log file from my last attempt):

Dism /Online /Cleanup-Image /CheckHealth
Dism /Online /Cleanup-Image /ScanHealth
Dism /Online /Cleanup-Image /RestoreHealth

4. I created a Restore.bat file with the following content:

net stop wuauserv
cd %systemroot%\SoftwareDistribution
ren Download Download.old
net start wuauserv
net stop bits
net start bits
net stop cryptsvc
cd %systemroot%\system32
ren catroot2 catroot2old
net start cryptsvc

5. Clean Boot: The windows update error messages continue to appear (last error code 800703f1). I was able to enter the Store, but not download anything afterwards. Other apps, such as my laptop's Bluetooth don't work either.

6. I followed the posting instructions of the forum and am attaching the sfcfix.txt file, as well as the cbs.zip file.

I will be very grateful to anyone who can help me with this issue.

Thank you in advance,

Maggie
 

Attachments

Hello Maggie and welcome to Sysnative!

This error always makes me cringe:
Code:
WARNING: Failed to check store directories with return code 1 and error code ERROR_FILE_NOT_FOUND. COMPONENTS hive may be corrupt.


WARNING: Components hive failed load test and may be corrupt.


WARNING: Components hive failed final reload test with error code ERROR_BADDB and may be corrupt.

This one can often be unrepairable.

Can you please go the following location C:\Windows\System32\config and look for the following files:
-COMPONENTS
-Any other files that start with the word COMPONENTS
-Or any files that have a similar name to COMPONENTS (it could be spelt different, have a number, a symbol etc)
If you find any please create a folder on your desktop and copy and paste all these files into this folder.
Next can you please zip this folder -> Please name this zip file to COMPONENTS_{Insert forum username here}_{insert todays Date here}.zip For example "COMPONENTS_Go The Power_1803.Zip"
Once done, upload them for me to analyze. The file may be too big to attach to this post, please use either Dropbox or One Drive.
  1. Right click on the
    aa922834-ed43-40f1-8830-d5507badb56c_39.jpg
    button
  2. Click on Command prompt (Admin) => Press Yes on the prompt
  3. Inside the Command Prompt windows copy and paste the following command
    dir %systemroot%\System32\config >1&&notepad 1
    [*]Please post the contents of the notepad file back into this thread


 
Hello Maggie and welcome to Sysnative!

This error always makes me cringe:
Code:
WARNING: Failed to check store directories with return code 1 and error code ERROR_FILE_NOT_FOUND. COMPONENTS hive may be corrupt.


WARNING: Components hive failed load test and may be corrupt.


WARNING: Components hive failed final reload test with error code ERROR_BADDB and may be corrupt.

This one can often be unrepairable.

Can you please go the following location C:\Windows\System32\config and look for the following files:
-COMPONENTS
-Any other files that start with the word COMPONENTS
-Or any files that have a similar name to COMPONENTS (it could be spelt different, have a number, a symbol etc)
If you find any please create a folder on your desktop and copy and paste all these files into this folder.
Next can you please zip this folder -> Please name this zip file to COMPONENTS_{Insert forum username here}_{insert todays Date here}.zip For example "COMPONENTS_Go The Power_1803.Zip"
Once done, upload them for me to analyze. The file may be too big to attach to this post, please use either Dropbox or One Drive.
  1. Right click on the
    aa922834-ed43-40f1-8830-d5507badb56c_39.jpg
    button
  2. Click on Command prompt (Admin) => Press Yes on the prompt
  3. Inside the Command Prompt windows copy and paste the following command
    dir %systemroot%\System32\config >1&&notepad 1
    [*]Please post the contents of the notepad file back into this thread



Hello Go The Power,

Thank you for your quick response. Please find attached the notepad file that you have requested, as well as a link to the Components.zip file:

https://www.dropbox.com/s/2s459wh3a4by2nk/COMPONENTS_Maggie_05.02.2015.zip?dl=0

Thank you so much for dealing with this issue!
 

Attachments

Thank you. The hive is corrupt and will not load, iobit has created a backup which still lets the hive load.

We will restore one of these backup hives and see if we can get this working again.

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

SFC /SCANNOW
  1. Right click on the
    aa922834-ed43-40f1-8830-d5507badb56c_39.jpg
    button
  2. Click on Command prompt (Admin) => Press Yes on the prompt
  3. Inside the Command Prompt windows copy and paste the following command SFC /SCANNOW
  4. Please wait for this to Finish before continuing with rest of the steps.
Convert CBS.log to CBS.txt
  1. Right click on the
    aa922834-ed43-40f1-8830-d5507badb56c_39.jpg
    button
  2. Click on Run => Inside the run box copy and paste the following command:
    Code:
    cmd /c copy %windir%\logs\cbs\cbs.log "%userprofile%\Desktop\cbs.txt"
  3. Press Enter
  4. Once this has completed please go to your Desktop and you will find CBS.txt, please rename this file to CBS_{Insert forum username here}_{insert todays Date here}.txt For example "CBS_Go The Power_1803.txt"
  5. Please upload CBS_{Username}_{Date}.txt to this thread.
Please Note:: if the file is too big to upload to you next post please upload via Dropbox or One Drive
 
Hello Go The Power,

Should I deinstall Iobit?

Here are the SFCFix.txtcontents:

Code:
SFCFix version 2.4.3.0 by niemiro.Start time: 2015-05-03 10:50:26.037
Microsoft Windows 8  - amd64
Using .zip script file at C:\Users\Maggie\Desktop\SFCFix.zip [1]








PowerCopy::
Successfully took permissions for file or folder C:\Windows\Sysnative\config\COMPONENTS


WARNING: File C:\Windows\System32\config\COMPONENTS was not backed up as that would replace the current backup.
Successfully copied file C:\Users\Maggie\AppData\Local\niemiro\Archive\COMPONENTS to C:\Windows\System32\config\COMPONENTS.


Successfully restored ownership for C:\Windows\Sysnative\config\COMPONENTS
Successfully restored permissions on C:\Windows\Sysnative\config\COMPONENTS
PowerCopy:: directive completed successfully.








Successfully processed all directives.
SFCFix version 2.4.3.0 by niemiro has completed.
Currently storing 1 datablocks.
Finish time: 2015-05-03 10:50:26.490
Script hash: 9zTwOt7pFft6qK3A30m0Ab8R3C11Hgf3YW06XWesS9A=
----------------------EOF-----------------------

Before running the SFC /SCANNOW command, I was prompted to restart the system, Windows updates reached 7% and then my laptop restarted three times with the following text:

Failure configuring Windows Updates. Reverting changes.

Please find attached the CBS.txt file.

Thank you very much for your willingness to help! :smile9:
 

Attachments

Hello Maggie,

Personally I wouldn't use Iobit, in your case it actually was good you had it as I was able to use one of its back ups.

We have actually made some progress, the COMPONENTS hive has been repaired.

Now to have a look at the pending transaction issue.

Please navigate to C:\Windows\winsxs and copy any files with a similar name to pending.xml (e.g. pending.xml, pending.xml.bad, pending.xml_dfsadf78 etc.) to your folder on the Desktop [there may not be any, just if there are]. Then zip up this folder and attach it to your next post.

  1. Rlick on the Start button -> click on Command prompt as Administrator
  2. Inside the Command Prompt windows copy and paste the following command
    REG LOAD HKLM\COMPONENTS C:\Windows\System32\config\COMPONENTS
    REG QUERY HKLM\COMPONENTS >1&& notepad 1

  3. Please wait for this to Finish before continuing with rest of the steps.
Please also export the following registry keys, add them into a zip and attach to this post:

  1. Right click on the Start button -> Click on Run -> type regedit
  2. Once 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\WindowsUpdate\

  3. Once selected, click File > Export....
  4. Change the Save as type: to Registry Hive Files (*.*)
  5. Name this file Update (with no file extension) and save it to your Desktop.


Once done please upload this file via Dropbox or One Drive
 
Thanks, so we do have some pending files. Lets try to revert these changes.

Boot into the Windows RE mode: How to use the Windows 7 System Recovery Environment Command Prompt

Once the command Window is displayed please follow the below steps.

First command to enter is wmic logicaldisk get name. you will be given a similar output to:

Code:
X:\Sources>wmic logicaldisk get name
Name
C:
D:
E:
X:

Now when you are in the RE the drive letters will often move around. start with the first letter that was provided in the list and enter in the following command (for this example we will use C:\ as it is the first one)

dir C:\
-This will display all the folders in the root drive of C

Can you see a folder called C:\Windows in list?
-If you can see C:\Windows then run the DISM command as DISM /Image:C:\ /Cleanup-Image /RevertPendingActions

If you can not see the Windows folder move onto the next Drive letter that we obtained with wmic logicaldisk get name and type in dir <DRIVE LETTER> (replace <DRIVE LETTER> with the drive you would like to check), can you see the Windows Folder?
-If yes, enter in the following command DISM /Image:C:\ /Cleanup-Image /RevertPendingActions and changed the C to what ever Drive letter has the Windows folder

Its just a case of going through each drive letter that was produced from the first list until the Windows folder is found then run the DISM command on that drive.

If you are prompted for a Scratch Directory please run the following:
mkdir C:\Scratch
DISM /Image:C:\ /ScratchDir:C:\Scratch /Cleanup-Image /RevertPendingActions

-Remember the drive letter in red needs to be changed like before.
 
Hello Go The Power,

After I entered the command, I received an Error 87. However, there were 145 updates available in Windows update. It took a whole day for the system to install them, but in the end, after a restart, I didn't work this time either, the update failed. I just started the updates again, but it stays at Downloading updates and nothing is happening really.

In Action Center, it also shows that none of my anti-spyware apps is turned on, although Avast is performing a scan right now. When I try to turn it on in Action Center, nothing happens.
 
Hello Maggie,

Did you add the spaces between the words in the command, I know its a bit hard to tell where the spaces need to be so I have amended my steps below, where ever you see a @ symbol replace the @ symbol with a space :)

Boot into the Windows RE mode: How to use the Windows 7 System Recovery Environment Command Prompt

Once the command Window is displayed please follow the below steps.

First command to enter is wmic logicaldisk get name. you will be given a similar output to:

Code:
X:\Sources>wmic logicaldisk get name
Name
C:
D:
E:
X:

Now when you are in the RE the drive letters will often move around. start with the first letter that was provided in the list and enter in the following command (for this example we will use C:\ as it is the first one)

dir C:\
-This will display all the folders in the root drive of C

Can you see a folder called C:\Windows in list?
-If you can see C:\Windows then run the DISM command as DISM@/Image:C:\@/Cleanup-Image@/RevertPendingActions

If you can not see the Windows folder move onto the next Drive letter that we obtained with wmic logicaldisk get name and type in dir <DRIVE LETTER> (replace <DRIVE LETTER> with the drive you would like to check), can you see the Windows Folder?
-If yes, enter in the following command DISM@/Image:C:\@/Cleanup-Image@/RevertPendingActions and changed the C to what ever Drive letter has the Windows folder

Its just a case of going through each drive letter that was produced from the first list until the Windows folder is found then run the DISM command on that drive.

If you are prompted for a Scratch Directory please run the following:
mkdir@C:\Scratch
DISM@/Image:C:\@/ScratchDir:C:\Scratch@/Cleanup-Image@/RevertPendingActions

-Remember the drive letter in red needs to be changed like before.
 
Hello Go The Power,

Apologies for the delayed reply. I tried again, but still the same result. I guess this means I will have to do a clean reinstall?
 
+ When I try to install a game or other application, there are always dll files missing or it doesn't start installing at all.
 
Is a repair install/fresh install an option?

Thing is, I bought the laptop with pre-installed Windows 8 and there is neither an installation disc nor a licence key anywhere on the machine. When I started having the issues, I did a refresh, but it didn't really help, so I also tried the reinstalling option, but apparently it wasn't of benefit either, so I'm kind of stuck.
 

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

Back
Top