Run SFC Command in Windows 10  

Page 30 of 31 FirstFirst ... 2028293031 LastLast

  1. Posts : 89
    Win 10 Pro 64-bit Version 22H2 (OS Build 19045.3086)
       #290

    BTW, I found a file install.esd;
    Should I continue with the Dism?
      My Computer


  2. Posts : 69,928
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #291

    mike ten said:
    BTW, I found a file install.esd;
    Should I continue with the Dism?
    No need since everything currently checks out.
      My Computers


  3. Posts : 923
    Windows 10 Pro 64bit 22H2 19045.3324
       #292

    Try3 said:

    Farvatten,


    How do you clear the CBS log?
    I'm wondering if clearing the log before every SFC run might be the only way to make it amenable to manual inspection given the discovery in your linked thread.

    All the best,
    Denis
    I just delete them at some point during the day.

    There's definitely some funny business that takes place with SFC after running Storage Sense because what normally are my 6 minute scans, afterwards balloon into 40 minutes to an hour and will remain that way for a week or so before returning to this typical 6 minutes.

    It's gotten to the point now where I'll ONLY run Storage Sense right BEFORE a Windows update. Where for some reason the SFC scan times will then remain at 6 minutes.

    Personally, not seeing any the sense in making any Macrium image backup that may have corruption, I run the SFC /scannow command on a schedule such that it's finishes before these scheduled late night backups.
      My Computers


  4. Posts : 17,049
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #293

    Bree said:
    There is one other type of successful repair that SFC can perform that would not appear in that filtered list, one where the file is not corrupt, but its permissions and/or ownership are. As the file does not get replaced it doesn't appear in the log with an [SR] entry. Searching the log for the keyword 'twice' will find them.
    Bree, Farvatten,

    Thanks for explaining this.

    I've altered my CBS extraction to this
    Code:
    findstr.exe "Warning [SR]" %windir%\Logs\CBS\CBS.log
    It returns all [SR] entries and all entries containing Warning.
    Run SFC Command in Windows 10-sfc-extract-including-overlap.png
    {I found it necessary to put Warning first in the search terms rather than [SR] to get the FindStr search to operate as an OR search in the expected manner.}

    @Brink - I think this might be worth including in Option 5.

    Bree - I chose Warning before I noticed you'd gone for twice. I think both are as good as each other for the current case but, for all I know, there are other cases that nobody has reported because none of us have gone looking for them. Warning seems to me to be more likely to appear in those unknown cases.


    All the best,
    Denis
    Last edited by Try3; 03 Aug 2023 at 14:14.
      My Computer


  5. Posts : 89
    Win 10 Pro 64-bit Version 22H2 (OS Build 19045.3086)
       #294

    Thank you, Brink.

    Integrity violations never actually impact my PC.
    I just think that in a couple of days, they will return.
      My Computer


  6. Posts : 923
    Windows 10 Pro 64bit 22H2 19045.3324
       #295

    Try3 said:
    Bree, Farvatten,

    Thanks for explaining this.

    I've altered my CBS extraction to this
    Code:
    findstr.exe "Overlap [SR]" %windir%\Logs\CBS\CBS.log
    For what it's worth, these "Warning: Overlap: Directory... is owned twice or has its security set twice" appear in all my SFC /scannow's that come back and report clean with:

    'Windows Resource Protection did not find any integrity violations.'
      My Computers


  7. Posts : 17,049
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #296

    Farvatten said:
    For what it's worth, these "Warning: Overlap: Directory... is owned twice or has its security set twice" appear in all my SFC /scannow's that come back and report clean with:
    'Windows Resource Protection did not find any integrity violations.'
    Yes.

    The reports of owned twice or has its security set twice are made when SFC's manifest sees what it thinks is a difference in permissions even though the permissions are, in effect, the same.
    A folder might be set with permissions as shown in the upper part of this diagram but SFC's manifest might be expecting them to be set as shown in the lower part [below the green line]. Or vice versa.
    Run SFC Command in Windows 10-owned-twice-has-its-security-set-twice.png
    A few Versions ago, SFC used to report these as faults [irreparable ones] and this was discussed in the forum.
    We thought, as far as I recall, that the problem was caused by a discrepancy between the SFC manifest & the permission-setting instructions in individual Windows Cumulative updates.
    I have not kept a link to any relevant threads but that screenshot of differing-yet-equivalent permissions arrangements is dated 28th July 2019 when I was on Version 1903. I think that must have been when we were discussing the subject here.
    Perhaps MS tweaked SFC to stop it calling them faults rather than fix the software configuration problem that this behaviour exposed.


    All the best,
    Denis
    Last edited by Try3; 03 Aug 2023 at 14:10.
      My Computer


  8. Posts : 43,382
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #297

    Hi, would it be worth expanding Options 1 and 2 section 3 to illustrate the case for UEFI cases? Thanks.
      My Computers


  9. Posts : 69,928
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #298

    dalchina said:
    Hi, would it be worth expanding Options 1 and 2 section 3 to illustrate the case for UEFI cases? Thanks.
      My Computers


  10. Posts : 89
    Win 10 Pro 64-bit Version 22H2 (OS Build 19045.3086)
       #299

    Hello all,

    I am sorry, but I don't understand dalchina's question.
    Is there something I can do, as the "SFC /scannow" continues to find corrupt files (and repair them) on my system?

    Thank you.
      My Computer


 

Tutorial Categories

Run SFC Command in Windows 10 Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Mixed Reality Phone


  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 19:56.
Find Us




Windows 10 Forums