Windows 10: SFC not repairing file. HRESULT = 0x80070002 In CBS Log

Discus and support SFC not repairing file. HRESULT = 0x80070002 In CBS Log in Windows 10 Software and Apps to solve the problem; Hey, I have been having problems updating my computer for awhile pushing them off thinking nothing of it but just recently I was trying to install apps... Discussion in 'Windows 10 Software and Apps' started by idontevenknow2.000, Mar 3, 2022.

  1. SFC not repairing file. HRESULT = 0x80070002 In CBS Log


    Hey, I have been having problems updating my computer for awhile pushing them off thinking nothing of it but just recently I was trying to install apps on MC Store and it would not download as well as my Windows Updates, giving me the error 0x800703f1. I did some research and saw that my files might be corrupt so I ran a SFC and indeed they were. System File checker told me they found corrupted files and were unable to repair them so I am trying to repair them manually.Here is the only file that says "corrupt" and "not found. Not able to add %windir%\winsxs\poqexec.log to WER report. [HRESULT

    :)
     
    idontevenknow2.000, Mar 3, 2022
    #1
  2. Riel Alc Win User

    SFC reports corrupt files that cannot be repaired

    Hi Jay,

    For to better assist you with the SFC reports issue, we'd like to know the following:

    • Have you installed any Windows updates prior to this issue?
    • Please provide us a CBS logs for us to determine what is the file that cannot be repaired.
    To get the logs, please follow the steps below:

    • Open a Command Prompt (Admin).
    • Copy and paste findstr /c:”[SR]” %windir%\Logs\CBS\CBS.log >”%userprofile%\Desktop\sfclogs.txt”, then hit
      Enter. (This will create a sfclogs.txt file on your desktop).
    • Open the sfclogs.txt and check the result of SFC scan.
    Note: SFC cannot always fix corrupted files.

    We're looking forward to your reply.
     
    Riel Alc, Mar 3, 2022
    #2
  3. phrab Win User
    Understanding the CBS log & repairing corrupt files

    I've been getting some event errors lately, in particular 2 errors.

    Date: 10/21/2019 8:54:17 AM
    Type: ErrorEvent: 1020Source: Microsoft-Windows-Perflib

    The required buffer size is greater than the buffer size passed to the Collect function of the "C:\Windows\System32\perfts.dll" Extensible Counter DLL for the "LSM" service. The given buffer size was 34008 and the required size was 45368.

    Date: 10/21/2019 2:07:45 PM
    Type: WarningEvent: 1008Source: Microsoft-Windows-Perflib

    The Open procedure for service ".NETFramework" in DLL "C:\WINDOWS\system32\mscoree.dll" failed with error code The system cannot find the file specified.. Performance data for this service will not be available.

    So I went to https://support.microsoft.com/en-us/...rrupted-system and ran

    sfc /scannow

    I got the message:
    Windows Resource Protection found corrupt files but was unable to fix some of them.For online repairs, details are included in the CBS log file located at windir\Logs\CBS\CBS.log.

    I tried to follow the rest of the steps listed on the support page, but got lost in the details.

    1. When I used an elevated Powershell & ran the suggested command, I got:

    PS C:\> findstr /c:"[SR]" %windir%\Logs\CBS\CBS.log >"%userprofile%\Desktop\sfcdetails.txt"

    out-file : Could not find a part of the path 'C:\%userprofile%\Desktop\sfcdetails.txt'.At line:1 char:1+ findstr /c:"[SR]" %windir%\Logs\CBS\CBS.log >"%userprofile%\Desktop\s ...+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : OpenError: SFC not repairing file. HRESULT = 0x80070002 In CBS Log :)) [Out-File], DirectoryNotFoundException + FullyQualifiedErrorId : FileOpenFailure,Microsoft.PowerShell.Commands.OutFileCommand

    2. I manually went to C:\Windows\Logs\CBS & opened CBS.log.There was so much detail that I couldn't follow what was corrupt. I've attached the log.

    I would appreciate anyone telling me what files are corrupt & how to replace them. Thank you in advance!
     
    phrab, Mar 3, 2022
    #3
  4. phrab Win User

    SFC not repairing file. HRESULT = 0x80070002 In CBS Log

    Understanding the CBS log & repairing corrupt files

    Thank you so much for your help! I ran:

    Repair-WindowsImage -Online -RestoreHealth


    Windows Resource Protection found corrupt files and successfully repaired them.
    For online repairs, details are included in the CBS log file located at
    windir\Logs\CBS\CBS.log. For example C:\Windows\Logs\CBS\CBS.log. For offline
    repairs, details are included in the log file provided by the /OFFLOGFILE flag.

    I then rebooted.

    Then I ran:
    c:\>sfc /scannow

    Beginning system scan. This process will take some time.

    Beginning verification phase of system scan.
    Verification 100% complete.

    Windows Resource Protection found corrupt files and successfully repaired them.
    For online repairs, details are included in the CBS log file located at
    windir\Logs\CBS\CBS.log. For example C:\Windows\Logs\CBS\CBS.log. For offline
    repairs, details are included in the log file provided by the /OFFLOGFILE flag.

    Then I ran:
    PS C:\> Repair-WindowsImage -Online -CheckHealth

    Path :
    Online : True
    ImageHealthState : Healthy
    RestartNeeded : False

    PS C:\> Repair-WindowsImage -Online -ScanHealth


    Path :
    Online : True
    ImageHealthState : Healthy
    RestartNeeded : False

    I am not sure whether the corrupted files were repaired or not because the "Repair-WindowsImage -Online -RestoreHealth" said it made repairs & then sfc /scannow said it found & made repairs.

    I did notice that I ran all these from C:\ & Brink's tutorial has it run from C:\Windows\System32. I don't know if that makes a difference.

    Does it look like my files should be OK now or is there something else I should do to check?
     
    phrab, Mar 3, 2022
    #4
Thema:

SFC not repairing file. HRESULT = 0x80070002 In CBS Log

Loading...
  1. SFC not repairing file. HRESULT = 0x80070002 In CBS Log - Similar Threads - SFC repairing file

  2. CBS Log not showing any corrupted files after SFC scan found and repaired.

    in Windows 10 Gaming
    CBS Log not showing any corrupted files after SFC scan found and repaired.: Hi,I run a C: backup about once a week. But before the backup, I run SFC /scannow. Sometimes I get "found corrupted files and they were repaired.So looking as the CBS Log file and can not find any repairs listed. I do a search in the CBS file for "corrupted" and it does not...
  3. CBS Log not showing any corrupted files after SFC scan found and repaired.

    in Windows 10 Software and Apps
    CBS Log not showing any corrupted files after SFC scan found and repaired.: Hi,I run a C: backup about once a week. But before the backup, I run SFC /scannow. Sometimes I get "found corrupted files and they were repaired.So looking as the CBS Log file and can not find any repairs listed. I do a search in the CBS file for "corrupted" and it does not...
  4. SFC not repairing file. HRESULT = 0x80070002 In CBS Log

    in Windows 10 Gaming
    SFC not repairing file. HRESULT = 0x80070002 In CBS Log: Hey, I have been having problems updating my computer for awhile pushing them off thinking nothing of it but just recently I was trying to install apps on MC Store and it would not download as well as my Windows Updates, giving me the error 0x800703f1. I did some research and...
  5. SFC not repairing file. HRESULT = 0x80070002 In CBS Log

    in Windows 10 Installation and Upgrade
    SFC not repairing file. HRESULT = 0x80070002 In CBS Log: Hey, I have been having problems updating my computer for awhile pushing them off thinking nothing of it but just recently I was trying to install apps on MC Store and it would not download as well as my Windows Updates, giving me the error 0x800703f1. I did some research and...
  6. SFC not repairing file. Given CBS Error in Details

    in Windows 10 Gaming
    SFC not repairing file. Given CBS Error in Details: Hey, I have been having problems updating my computer for awhile pushing them off thinking nothing of it but just recently I was trying to install apps on MC Store and it would not download as well as my Windows Updates, giving me the error 0x800703f1. I did some research and...
  7. SFC not repairing file. Given CBS Error in Details

    in Windows 10 Software and Apps
    SFC not repairing file. Given CBS Error in Details: Hey, I have been having problems updating my computer for awhile pushing them off thinking nothing of it but just recently I was trying to install apps on MC Store and it would not download as well as my Windows Updates, giving me the error 0x800703f1. I did some research and...
  8. SFC not repairing file. Given CBS Error in Details

    in Windows 10 Installation and Upgrade
    SFC not repairing file. Given CBS Error in Details: Hey, I have been having problems updating my computer for awhile pushing them off thinking nothing of it but just recently I was trying to install apps on MC Store and it would not download as well as my Windows Updates, giving me the error 0x800703f1. I did some research and...
  9. CBS log from SFC scan

    in Windows 10 Network and Sharing
    CBS log from SFC scan: after running sfc /scannow errors were found & this is where the results were found . I have no idea how to read this. https://1drv.ms/u/s!At73nWtbQSuIgbcKmbFBuM-QNwW_0Q?e=scbcIP...
  10. Understanding the CBS log & repairing corrupt files

    in Windows 10 Performance & Maintenance
    Understanding the CBS log & repairing corrupt files: I've been getting some event errors lately, in particular 2 errors. Date: 10/21/2019 8:54:17 AM Type: ErrorEvent: 1020Source: Microsoft-Windows-Perflib The required buffer size is greater than the buffer size passed to the Collect function of the...