sfc /scannow does not create CBS.log file

Page 1 of 3 123 LastLast

  1. Posts : 12
    Win10 x64
       #1

    sfc /scannow does not create CBS.log file


    Hey everyone.

    I used sfc /scannow command and it found corrupted files but it couldn't fix them. So it says i can manually check these corrupted files, with CBS.log; but it doesn't create CBS.log file.

    I have tried these commands;
    set WINDOWS_TRACING_LOGFILE=C:\TEMP\CBS.log
    findstr /c:"[SR]" %windir%\logs\cbs\cbs.log


    But these commands didn't solve my problem. Also DISM commands couldn't fix what the sfc command couldn't fix.

    My winver:

    @Kyhi with your .bat file, detail txt is empty too



    Any ideas?
      My Computer


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

    Hello @Delka,

    As a start, in a CMD Prompt, Copy & Paste the following and press Enter.
    It will create a SFC_ERRORS.log file on the Desktop.
    If you have re-located Desktop, then change the Path accordingly.

    Code:
    
    findstr /C:"[SR]" %SystemRoot%\Logs\CBS\CBS.log > %UserProfile%\Desktop\SFC_ERRORS.log

    I hope this helps.
      My Computer


  3. Posts : 12
    Win10 x64
    Thread Starter
       #3

    Paul Black said:
    Hello @Delka,
    Code:
    
    findstr /C:"[SR]" %SystemRoot%\Logs\CBS\CBS.log > %UserProfile%\Desktop\SFC_ERRORS.log
    Hello, thanks for your reply, here is the result:
      My Computer


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

    Hello @Delka,

    Change the CMD Prompt to C:\Windows\system32 and re-run the command I posted.

    Code:
    
    C:\Windows\system32> findstr /C:"[SR]" %SystemRoot%\Logs\CBS\CBS.log > %UserProfile%\Desktop\SFC_ERRORS.log

    Have you looked to see if you have actually got a %SystemRoot%\Logs\CBS folder, and if so, what files do you have in there?
      My Computer


  5. Posts : 12
    Win10 x64
    Thread Starter
       #5

    Paul Black said:
    Change the CMD Prompt to C:\Windows\system32 and re-run the command I posted.
    Code:
    
    C:\Windows\system32> findstr /C:"[SR]" %SystemRoot%\Logs\CBS\CBS.log > %UserProfile%\Desktop\SFC_ERRORS.log
    Here is the result (SFC_ERRORS.log file is empty too):



    Paul Black said:
    Have you looked to see if you have actually got a %SystemRoot%\Logs\CBS folder, and if so, what files do you have in there?
    There is an CBS folder, but its empty.

    - - - Updated - - -

    Solved with DISM command - install.wim:

    6 Best Solutions To Run DISM Command In Windows (2022)

    4th way.
    @Paul Black , thanks for your effort.
      My Computer


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

    Hello @Delka,

    Is there a sfc.exe file in %SystemRoot%\System32 ?

    sfc /scannow does not create CBS.log file-image.png

    You could also look at Option 1 here => How to Repair System Files with SFC Command in Windows 10

    You say that DISM /Online /Cleanup-Image /RestoreHealth also does NOT work. Are there ANY messages ?
      My Computer


  7. Posts : 4,142
    Windows 3.1 to Windows 11
       #7

    The .bat file was written for English spelling
    That log files location exists in all Windows OS's
    It is getting lost in the translation
      My Computer


  8. Posts : 497
    Windows 10 Home x64
       #8

    sfc /scannow does not create CBS.log file-capture.png
      My Computers


  9. Posts : 12
    Win10 x64
    Thread Starter
       #9

    Paul Black said:
    Hello @Delka,

    Is there a sfc.exe file in %SystemRoot%\System32 ?

    sfc /scannow does not create CBS.log file-image.png

    You could also look at Option 1 here => How to Repair System Files with SFC Command in Windows 10

    You say that DISM /Online /Cleanup-Image /RestoreHealth also does NOT work. Are there ANY messages ?
    rooscoota said:
    sfc /scannow does not create CBS.log file-capture.png

    IDK why i couldn't explain this. Let me be more clear.

    -SFC /scannow works.
    -SFC /scannow finds corrupted files.
    -SFC /scannow could not repair the corrupted files.
    -SFC /scannow says: "Check CBS.log file."
    -But there is no CBS.log file. Because SFC /scannow couldnt - didnt create CBS.log file.

    -And yes, there is no CBS.log file in the "%SystemRoot%\Logs\CBS" folder.

    What i mean by DISM didnt, work;
    Lets assume that sfc /scannow found "file 1.exe" is corrupted, and couldnt repair "file 1.exe"
    What i mean is, DISM is also uncapable of repairing "file 1.exe"

    And last update is:
    I used DISM command with install.wim file, and i managed to repair the corrupted (file 1 .exe) files. So now sfc /scannow says "there is no corrupted files"
      My Computer


  10. Posts : 497
    Windows 10 Home x64
       #10

    glad you got it sorted......dont forget to mark as solved
      My Computers


 

  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 13:17.
Find Us




Windows 10 Forums