[SOLVED] "sfc /scannow" unable to fix corrupted files - "Vista Business" x86 SP2

Twincam

Member
Joined
Dec 4, 2014
Posts
15
Location
Cambridge UK
"sfc /scannow" unable to fix corrupted files - "Vista Business" x86 SP2

Hi Sysnative,

I located you via Google (searching for "winsxs issues) and noting that I have a similar problem (on a friend's Laptop) to several of the solved postings on here. Aged, but otherwise OK Acer TravelMate 7730, in which I have just replaced the failing HDD (using BartPE-based Ghost image). Was about to return PC (everything works OK - I have installed all available "Windows Updates") but decided to run "sfc /scannow" and it detected corruption ....

Rebuilding "winsxs" is (certainly!) beyond me, but I would hate to return a PC with potential future problems. I noted that there is no actual "Pending.xml" file but there are 10 files prefaced with a long number and a ".pending.xml" extension. I have a "Vista Ultimate" x86 SP2 virtual machine available (which has run "sfc/scannow" - with successful fixes) in case that helps. I have also downloaded the "CheckSUR" tool (KB947821 v35) in case I needed it. I did attempt to use it (unsuccessfully) and it highlighted the fact that, after migration from the (failing) Toshiba HDD to the new Seagate HDD, I had to install a newer Intel IRST driver (a geometry issue - not obvious). Doing that fixed the then non-running "Windows Search" service and allowed me to run the then non-running "Windows Update" service. Everything is now (apparently) OK - in fact running very well for an old Laptop - but I know it could be only a question of time .... and that the 10464 files in the "PendingRenames" folder are probably redundant. Some date back to November 2013! There is an additional folder in winsxs\Temp with a long numeric name. It contains a single file created in April 2010!

Thanks for this (and I hope I made my first post correctly!).

Cheers, Neil.
 

Attachments

Re: "sfc /scannow" unable to fix corrupted files - "Vista Business" x86 SP2

Not very clever of me. Please can an "Administrator" move this to an appropriate forum? (I wasn't certain where it should go and can't seem to move it myself. :roll eyes (sarcasti) Thanks.
 
Re: "sfc /scannow" unable to fix corrupted files - "Vista Business" x86 SP2

"SFCFix" output:

SFCFix version 2.4.1.0 by niemiro.
Start time: 2014-12-04 14:36:51.575
Not using a script file.




AutoAnalysis::
WARNING: Failed to backup registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\ComponentDetect\x86_wpdmtphw.inf_31bf3856ad364e35_0.0.0.0_none_1c1880257795310c.
FIXED: Orphaned component Microsoft-Windows-WPD7IP-SKU-Package~31bf3856ad364e35~x86~~7.0.6002.18112.wpdmtphw.inf (x86_wpdmtphw.inf_31bf3856ad364e35_0.0.0.0_none_1c1880257795310c) on component watchlist.
WARNING: Failed to backup registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\ComponentDetect\x86_wpdmtp.inf_31bf3856ad364e35_0.0.0.0_none_43743b50cedad977.
CORRUPT: Failed to repair orphaned component value name not identified (x86_wpdmtp.inf_31bf3856ad364e35_0.0.0.0_none_43743b50cedad977) on component watchlist.


WARNING: Failed to backup registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\ComponentDetect\x86_wpdfs.inf_31bf3856ad364e35_0.0.0.0_none_49c6cb2f1ac5fe37.
CORRUPT: Failed to repair orphaned component value name not identified (x86_wpdfs.inf_31bf3856ad364e35_0.0.0.0_none_49c6cb2f1ac5fe37) on component watchlist.


WARNING: Failed to backup registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\ComponentDetect\x86_bthmtpenum.inf_31bf3856ad364e35_0.0.0.0_none_23d1b875dc1c1425.
FIXED: Orphaned component Microsoft-Windows-WPD7IP-SKU-Package~31bf3856ad364e35~x86~~7.0.6002.18112.bthmtpenum.inf (x86_bthmtpenum.inf_31bf3856ad364e35_0.0.0.0_none_23d1b875dc1c1425) on component watchlist.



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: 8
SURT total unimportant corruption count: 0
SURT total fixed corruption count: 2
AutoAnalysis:: directive completed successfully.




Successfully processed all directives.



Failed to generate a complete zip file. Upload aborted.


SFCFix version 2.4.1.0 by niemiro has completed.
Currently storing 2 datablocks.
Finish time: 2014-12-04 14:40:53.091
----------------------EOF-----------------------
 
Re: "sfc /scannow" unable to fix corrupted files - "Vista Business" x86 SP2

Hello Neil and welcome to Sysnative forums.

the "CheckSUR" tool (KB947821 v35) in case I needed it. I did attempt to use it (unsuccessfully) and it highlighted the fact that, after migration from the (failing) Toshiba HDD to the new Seagate HDD, I had to install

What issue did you have with running the tool? A full guide can be found here: https://www.sysnative.com/forums/wi...diness-tool-system-update-readiness-tool.html

The files that SFCFix tried to repair where from an old run of SURT:
Code:
Checking System Update Readiness.
Binary Version 6.0.6002.22285
Package Version 7.0
2010-05-05 00:04

When you try and run CheckSUR (SURT) what error are you getting?

Alex
 
Re: "sfc /scannow" unable to fix corrupted files - "Vista Business" x86 SP2

Hello Neil and welcome to Sysnative forums.

the "CheckSUR" tool (KB947821 v35) in case I needed it. I did attempt to use it (unsuccessfully) and it highlighted the fact that, after migration from the (failing) Toshiba HDD to the new Seagate HDD, I had to install

What issue did you have with running the tool? A full guide can be found here: https://www.sysnative.com/forums/wi...diness-tool-system-update-readiness-tool.html

The files that SFCFix tried to repair where from an old run of SURT:
Code:
Checking System Update Readiness.
Binary Version 6.0.6002.22285
Package Version 7.0
2010-05-05 00:04

When you try and run CheckSUR (SURT) what error are you getting?

Alex

Hi Alex,

Thanks for responding.

I downloaded it and attempted to install it (v35 for x86 Vista - downloaded from Microsoft) but it didn't install. That was what prompted to me start digging deeper and discover (indirectly) that the updated Intel IRST driver was required to get the PC running properly. (Before I did that, neither "Windows Update" nor the "Windows Search Service" would run - although the OS seemed OK otherwise.) So, I have not run it yet.

Should I attempt to install and run it now and should I use the version on the link you provided (v33) or v35? Thanks. (I was trying to remember my actions when I stumbled across this site so that's why I posted a garbled initial "essay". That's also why I posted the files. Sorry.)

Edit: I answered those 2 dumb questions I just asked and am running SURT v35 as I speak. Doh!

Cheers, Neil.
 
Re: "sfc /scannow" unable to fix corrupted files - "Vista Business" x86 SP2

Hi Alex,

SURT completed without errors!

###########################################################################
Summary:
Seconds executed: 777
No errors detected

Checking CoreOS key for repairing corruptions.
Winner version: 6.0.6002.18971.
Processor architecture: x86.
Check key to be repaired: wcm://Microsoft-Windows-CoreOS?version=6.0.6002.18971&language=neutral&processorArchitecture=x86&publicKeyToken=31bf3856ad364e35&versionScope=nonSxS&scope=allUsers\metadata\elements\ComputerName
Recreated value: @_type.
Recreated value: @dataOnly.
Recreated value: @default.
Recreated value: @description.
Recreated value: @displayName.
Recreated value: @handler.
Recreated value: @legacyName.
Recreated value: @legacyType.
Recreated value: @migrate.
Recreated value: @scope.
Recreated value: @xsd:type.
###########################################################################

However, sfc /scannow has again logged errors. I have just run SFCFix again and the error is "unimportant" (nice to know - it's a shame Microsoft panicked me in the first place!).

###########################################################################
SFCFix version 2.4.1.0 by niemiro.
Start time: 2014-12-07 00:01:01.148
Not using a script file.




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




Successfully processed all directives.
SFCFix version 2.4.1.0 by niemiro has completed.
Currently storing 2 datablocks.
Finish time: 2014-12-07 00:03:14.294
----------------------EOF-----------------------
###########################################################################

SFCFix is a really cool tool! My final question is "Can I now delete the contents of C:\Windows\winsxs\Temp?" That'll save ~250Mb of space.

Thanks very much.

Cheers, Neil.
 
Re: "sfc /scannow" unable to fix corrupted files - "Vista Business" x86 SP2

Hi Neil,

Its good to see SURT has not detected any more errors. Before we look at anything else I would like to see what SFC /SCANNOW has detected.

Export CBS folder

  1. Click the Start button
    StartButton_16x16.gif
    then click Computer.
  2. Double-click on the C: drive, under the Hard Disk Drives category, and then scroll down to, and double click on the Windows folder.
  3. Find and double click on the Logs folder.
  4. Right-click on the CBS folder, and select Copy.
  5. Go back to your Desktop, right-click on it, and select Paste. You should now see a copy of the CBS folder appear on your Desktop called CBS.
  6. Right-click on this new folder, and navigate through Send to, and select Compressed (zipped) folder.
  7. A new file, also called CBS (CBS.zip), but this time with a different icon, will be created.
  8. Attach this to your next post please.
Please Note:: if the file is too big to upload to you next post please upload via Dropbox or One Drive

Alex
 
Re: "sfc /scannow" unable to fix corrupted files - "Vista Business" x86 SP2

Hi Alex,

Please find CBS.zip attached as requested.

Cheers Neil.
 
Re: "sfc /scannow" unable to fix corrupted files - "Vista Business" x86 SP2

Hi Neil,

Just one file is showing as corrupt:

Code:
2014-12-06 23:39:14, Info                  CSI    00000201 Hashes for file member \SystemRoot\WinSxS\x86_microsoft-windows-sidebar_31bf3856ad364e35_6.0.6002.18005_none_d0c824c923c9e622\settings.ini do not match actual file [l:24{12}]"settings.ini" :
  Found: {l:32 b:VMKjry7x15WpzqhIHOF3jzMwh3ixELdKjfW71YVuEEg=} Expected: {l:32 b:v6OQf2AJO5FVbRBJuIwXxkdkCoOaSk3y0ol6uTH491o=}

Lets get this file fixed.

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. Click on the
    Win7Orb_zps4dae3b32.jpg
    button. Inside the search box type in CMD
  2. Right click on CMD => Choose Run as Administrator
  3. Inside the Command Prompt windows copy and paste the following command SFC /SCANNOW
  4. Please wait for this to Finish before continuing with the rest of the steps.

Convert CBS.log to CBS.txt

  1. Click on the
    Win7Orb_zps4dae3b32.jpg
    button => Inside the search box copy and paste the following command:
    Code:
    cmd /c copy %windir%\logs\cbs\cbs.log "%userprofile%\Desktop\cbs.txt"
  2. Press Enter
  3. Once this has completed please go to your Desktop and you will find CBS.txt => Please upload CBS.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


Alex
 
Re: "sfc /scannow" unable to fix corrupted files - "Vista Business" x86 SP2

Hi Alex,

I'm staggered .... you are a st*r! Please see below.

Code:
SFCFix version 2.4.1.0 by niemiro.
Start time: 2014-12-08 09:57:09.866
Using .zip script file at C:\Users\ed-Admin\Desktop\SFCFix.zip [0]




PowerCopy::
Successfully took permissions for file or folder C:\Windows\winsxs\x86_microsoft-windows-sidebar_31bf3856ad364e35_6.0.6002.18005_none_d0c824c923c9e622\settings.ini

Line blocked (SFCFix.txt): "C:\Users\ed-Admin\AppData\Local\niemiro\Archive\SFCFix.txt" C:\Windows\SFCFix.txt.
Successfully copied file C:\Users\ed-Admin\AppData\Local\niemiro\Archive\winsxs\x86_microsoft-windows-sidebar_31bf3856ad364e35_6.0.6002.18005_none_d0c824c923c9e622\settings.ini to C:\Windows\winsxs\x86_microsoft-windows-sidebar_31bf3856ad364e35_6.0.6002.18005_none_d0c824c923c9e622\settings.ini.

Successfully restored ownership for C:\Windows\winsxs\x86_microsoft-windows-sidebar_31bf3856ad364e35_6.0.6002.18005_none_d0c824c923c9e622\settings.ini
Successfully restored permissions on C:\Windows\winsxs\x86_microsoft-windows-sidebar_31bf3856ad364e35_6.0.6002.18005_none_d0c824c923c9e622\settings.ini
PowerCopy:: directive completed successfully.




Successfully processed all directives.
SFCFix version 2.4.1.0 by niemiro has completed.
Currently storing 1 datablocks.
Finish time: 2014-12-08 09:59:37.957
Script hash: P8K0suodRJRzUdHEMCD24y5/JGmjzBKXva0YfrKmi0U=
----------------------EOF-----------------------

sfc /scannow completed successfully. Please find CBS.txt on Onedrive (too big).

May I now delete the contents of winsxs\temp? (@264Mb) I will encourage "Ed" (my mate and the PC Owner) to make a contribution. Thanks a lot! How do I mark this "solved"? Also, is it possible to determine when the PC developed the "issue"? (I think it pre-dates my HDD migration.)

Cheers, Neil.
 
Re: "sfc /scannow" unable to fix corrupted files - "Vista Business" x86 SP2

Hello Neil,

Its not a good idea to start deleting files inside WinSxS\TEMP has they might still be there for a pending transaction. A safe way to clear the pending transactions is by:

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
 
Re: "sfc /scannow" unable to fix corrupted files - "Vista Business" x86 SP2

G'day Alex,

Whilst I can access the OEM (Acer) recovery partition (F8 -> "Repair Your Computer" -> "Command Prompt"), when I end up at the command prompt ("X:\windows\system32") wmic logicaldisk get name produces the following response

Code:
ERROR:
Code = 0x80040154
Description = Class not registered
Facility = Interface

Sure, I can see that the "real" Windows installation is on drive "C:" (determined by changing to it with a "c:" keyed at the prompt) but dism /? produces

Code:
'dism' is not recognized as an internal or external command,
operable program or batch file.

when entered from either X:\windows\system32 or C:\

I thought, having got this far, I'd better report back before I do anything else (although I have captured another Ghost image "just in case"!). I have no offline "Vista SP2 x86" media .... but I could build one if it would help. (Found this It looks convoluted but possible. I assume I would need to go up to SP2 because that's the installed version?)

I guess that the "pending" files must be required then? I just assumed (dangerous) that they were no longer required because they related to prior "Windows Updates" or SP installations and had just not been cleared for "unknown reasons". Sorry to be a pain!

Cheers Neil.
 
Re: "sfc /scannow" unable to fix corrupted files - "Vista Business" x86 SP2

HI Neil,

Sorry that was my fault. I forgot that Vista doesn't come with Vista! I dont deal with many Vista machines.

As for the files, personally I would just leave them there. They are most likely from a failed transaction, but they could be there for a pending transaction.

Alex
 
Re: "sfc /scannow" unable to fix corrupted files - "Vista Business" x86 SP2

Hi Alex,

No worries! Thanks very much for all your help. Ta.

Cheers Neil.
 

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

Back
Top