Frequent corruption detected


  1. Posts : 355
    Windows 10x64 Pro
       #1

    Frequent corruption detected


    Hi all, as part of Windows maintenance I check for corruption with the "sfc /scannow" and "DISM /Online /Cleanup-Image /CheckHealth" commands on a monthly basis. Since I installed Windows about 5 years ago I never had corruption, but for the last 2 weeks sfc /scannow is detecting corruption showing this message:

    C:\Windows\system32>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.


    So immediately after I run sfc /scannow again and everything fine, but for some reason after reboot corruption appears again, this case being repeated about 5 times in the last 2 weeks. Any hint? Thanks
      My Computer


  2. Posts : 18,044
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #2

    Hello @antares,

    To output the results for sfc ONLY, Copy & Paste the following command into a CMD Prompt and press Enter. It will create a sfc_Details.log file on your Desktop. If you have a relocated Desktop, then change the output Path accordingly.

    Code:
    
    findstr /c:"[SR]" %WinDir%\Logs\CBS\CBS.log > "%UserProfile%\Desktop\sfc_Details.log"

    I hope this helps.
      My Computer


  3. Posts : 355
    Windows 10x64 Pro
    Thread Starter
       #3

    Paul Black said:
    Hello @antares,

    To output the results for sfc ONLY, Copy & Paste the following command into a CMD Prompt and press Enter. It will create a sfc_Details.log file on your Desktop. If you have a relocated Desktop, then change the output Path accordingly.

    Code:
    
    findstr /c:"[SR]" %WinDir%\Logs\CBS\CBS.log > "%UserProfile%\Desktop\sfc_Details.log"

    I hope this helps.
    Hi Paul, yes, I did run that command to generate the sfcdetails.txt file on my desktop, but unfortunately I get lots of lines that I'm unable to interpret that read as follows (I extracted just a few lines as samples):

    2023-04-07 04:43:39, Info CSI 0000000a [SR] Verifying 100 components
    2023-04-07 04:43:39, Info CSI 0000000b [SR] Beginning Verify and Repair transaction
    2023-04-07 04:43:39, Info CSI 0000000c [SR] Verify complete


    I also get lots of lines in the following style:

    2023-04-07 04:44:26, Info CSI 0000022f [SR] Repairing file \??\C:\Windows\SystemApps\Microsoft.Windows.CloudExperienceHost_cw5n1h2txyewy\RetailDemo\\retailDemo Setup.js from store
      My Computer


  4. Posts : 16,950
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #4

    You can see what the repairs are [within the overall SFC records] using Option 5 of
    SFC - TenForumsTutorials

    You can play around with exactly what entries you extract from SFC records***. I use this to extract just a list of repairs to a text file on my Desktop.
    Code:
    findstr.exe /c:"[SR] Repair" %windir%\Logs\CBS\CBS.log >"D:\Desktop\%ComputerName%-SFCResults-Repairs.Log"
    Replace my D:\Desktop with the path to your own Desktop.

    You can do this each time to see what repairs are being done - perhaps they are the same ones every time.
    Some faults & their repairs are trivial so do post your results here for others to consider.


    *** SFC shortcuts - My TenForumsTutorials ditty


    Best of luck,
    Denis
      My Computer


  5. Posts : 355
    Windows 10x64 Pro
    Thread Starter
       #5

    Thanks Try3, that is handy
      My Computer


  6. Posts : 16,950
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #6

    I've now stopped fiddling with my last post. I've added a link to a description of all the SFC shortcuts I use.


    All the best,
    Denis
      My Computer


  7. Posts : 41,475
    windows 10 professional version 1607 build 14393.969 64 bit
       #7

    This bat script may be useful:

    It runs scannow followed by restorehealth followed by scannow to see if repairs remain fixed.

    https://www.tenforums.com/attachment...p_plus_log.bat


    If there were to be uncorrected problems an in place upgrade repair is often useful:

    Repair Install Windows 10 with an In-place Upgrade
    Last edited by zbook; 08 Apr 2023 at 02:14.
      My Computer


  8. Posts : 355
    Windows 10x64 Pro
    Thread Starter
       #8

    Thanks for that script
      My Computer


  9. Posts : 41,475
    windows 10 professional version 1607 build 14393.969 64 bit
       #9

    You're welcome.....anytime.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 03:32.
Find Us




Windows 10 Forums