how to run sfc with offlogfile flag


  1. Posts : 5
    W10
       #1

    how to run sfc with offlogfile flag


    Ran SFC , Got the following.

    "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 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. For example C:\Windows\Logs\CBS\CBS.log. For offline
    repairs, details are included in the log file provided by the /OFFLOGFILE flag."

    Background is that the tablet's wifi and bluetooth aren't working, That means I can't run DISM or repair online.

    I have an identical tablet with the same drivers. That is working no problem. I have also uninstalled the drivers and restarted to reinstall them. Also done a reinstall of 1809. sfc is still showing corrupt files. Problem came from failed 1903 update and rollback to 1809.

    I am trying to see if the sfc logfile will help me repair.

    I have already tried sfc /scannow /offlogfile=c;\scanlog.txt
    and sfc /offlogfile=c:\scanlog.txt
      My Computer

  2.   My Computer


  3. Posts : 41,460
    windows 10 professional version 1607 build 14393.969 64 bit
       #3

    If needed consider running DISM limit access commands.
    First check the CBS log file to find the underlying problem(s).

    Administrative command prompt:
    findstr /c:"[SR]" %windir%\logs\cbs\cbs.log >%userprofile%\Desktop\sfcdetails.txt

    Look for a new text file on the desktop > post a share link into the thread using one drive, drop box, or google drive

    C:\Windows\Logs\CBS\CBS.log
    C:\Windows\Logs\Dism\Dism.log



    Use DISM to Repair Windows 10 Image
    Run SFC Command in Windows 10
    Repair Install Windows 10 with an In-place Upgrade
      My Computer


  4. Posts : 65
    Windows 10 Pro 1909 18363.959
       #4

    /offlogfile is for when you run sfc /scannow in offline mode, ie from say a winpe, win re, recovery drive or install media usb...

    SFC /scannow /offbootdir=C:\ /offwindir=C:\windows /offlogfile:C:\scanlog.txt

    this assumes that C: is your system drive ...sometimes the drive letter will change so use:

    wmic logicaldisk get deviceid, volumename, description to list your volume drive letters to select the correct drive letter
      My Computers


  5. Posts : 4,594
    Windows 10 Pro
       #5

    If it still has corrupted files run this command as Admin

    fsutil resource setautoreset true c:\&fsutil usn deletejournal /d /n c:&Dism.exe /online /Cleanup-Image /StartComponentCleanup&sfc /scannow&Dism.exe /Online /Cleanup-Image /RestoreHealth&sfc /scannow&Dism.exe /Online /Cleanup-Image /StartComponentCleanup /ResetBase&pause
      My Computers


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

    Peter T said:
    Ran SFC ... Windows Resource Protection found corrupt files but was unable to fix some of them
    Peter,

    Before you go any further [since this whole thing might be irrelevant to your WiFi-BT problems], extract a list of what SFC cannot repair using this command

    [it does not need to be run in an elevated command window, any old command window will do]
    insert your own choice of path for the output file
    Code:
    findstr.exe /c:"[SR] Cannot repair member file" %windir%\Logs\CBS\CBS.log >D:\Desktop\SFCResults-Unrepairables.Log"

    Then look at SFCResults-Unrepairables.Log. Is it the same as this picture? All Windows defender ... hash mismatches? If it is the same list then you can dismiss SFC as having any bearing on your WiFi-BT problem. You don't even need to bother reading the rest of that thread. You can just return to fault-finding your hardware without the distraction of thinking SFC will help you.

    Denis
      My Computer


  7. Posts : 5
    W10
    Thread Starter
       #7

    Thanks, Denis. It was the same list actually. However I am struggling to accept that it is hardware.

    Wifi was working for the update but wasn't working after the rollback following the failure of the update.

    I managed to get bluetooth going by reinstalling the driver but it is jittery or spasmodic at best.

    I did another reinstall with the source obtained from an identical tablet that works. Now they have identical drivers, Windows versions and hardware. Still not working. Makes no sense.

    - - - Updated - - -

    Thanks, Denis. It was the same list actually. However I am struggling to accept that it is hardware.

    Wifi was working for the update but wasn't working after the rollback following the failure of the update.

    I managed to get bluetooth going by reinstalling the driver but it is jittery or spasmodic at best.

    I did another reinstall with the source obtained from an identical tablet that works. Now they have identical drivers, Windows versions and hardware. Still not working. Makes no sense.
      My Computer


  8. Posts : 16,932
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #8

    I suggest that you start a new thread in which you describe the problems you are having without even mentioning the red herring of SFC.

    Denis
      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 11:14.
Find Us




Windows 10 Forums