Post problem reports here for Batch files for use in BSOD debugging

Page 4 of 151 FirstFirst ... 234561454104 ... LastLast

  1. Posts : 7,607
    Windows 10 Home 20H2
       #31

    zbook said:
    Anything relatively easy to modify to use for Windows 10?
    Find a member good at PowerShell to modify it. If no one can do so, I can try to write a batch script to check for pending reboot as per this article: Check for pending reboot with PowerShell
      My Computer


  2. Posts : 14,046
    Windows 11 Pro X64 22H2 22621.1848
    Thread Starter
       #32

    Matthew Wai said:
    Testing.bat

    The above script will ...
    1. Copy CBS.log onto the desktop if the size is less than or equal to 5 MB.
    2. If it is larger than 5 MB, CBS.log will be renamed CBS.bak_Date_at_Time.log, and sfc /scannow will be run so as to create a new "CBS.log" file, which will then be copied onto the desktop.


    How should the results be reported? Use Notepad to open "CBS.log" or copy all "[SR]" lines into a new file?
    5MB is to big.

    Please stop with copying CBS.log or the CbsPersist_2020nnnnnnnnnn.log files. They are almost never needed. If they are they can easily be copied manually.

    Note that there can be one CBS.log and from 1 to n CbsPersist_2020nnnnnnnnnn.log files.

    Z, I don't know why you're harping on this but I really don't want the collection of CBS.log automated.

    Also, what is the PS1 you keep mentioning. I recognize the other stuff you mention but that one doesn't ring a bell.

    As for the size of CBS.log, it will never be larger than 50KB. When it hits that, it gets renamed to CbsPersist_2020nnnnnnnnnn.log file and a new CBS.log gets started.

    Matthew, copying it to the Desktop and running SFC to gen a new one is ridiculous. How does this aid in BSOD debugging? See my previous line. If you want new SFC data, run Tuneup1.bat then SFCfromFile.bat. If anything, change SFCfromFile to collect data from all CBS*log files so you get current and historical data. As it is now, it checks for CBS.log. If not there it takes gets data from CbsPersist*.log. I wonder if that gets data from all existing CbsPersist*.log files or just the first one it finds?
      My Computers


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

    A CBS folder may include:
    a) multiple CbsPersist
    b) CheckSUR.log
    d) DeepClean.log
    e) FilterList.log


    Microsoft Technet PS1 = LOGS

    On the computer used to type this post CBS.log = 368,503 KB


    scannow are suggested for multiple bugchecks:

    EF
    7B
    154
    24
    etc.
      My Computer


  4. Posts : 7,607
    Windows 10 Home 20H2
       #34

    Ztruker said:
    Matthew, copying it to the Desktop and running SFC to gen a new one is ridiculous. How does this aid in BSOD debugging?
    I know nothing about BSOD debugging. I was just responding to zbook's suggestion, which I might have misunderstood.
      My Computer


  5. Posts : 41,480
    windows 10 professional version 1607 build 14393.969 64 bit
       #35

    SFCfromFile.bat

    may not find problems that can be detected by viewing the CBS log.
      My Computer


  6. Posts : 41,480
    windows 10 professional version 1607 build 14393.969 64 bit
       #36

    The OP reported problems running a bat file in post #28:
    Clocks keep stopping when PC is closed
      My Computer


  7. Posts : 14,046
    Windows 11 Pro X64 22H2 22621.1848
    Thread Starter
       #37

    zbook said:
    The OP reported problems running a bat file in post #28:
    Clocks keep stopping when PC is closed
    No idea what he did but he didn't download the batch file.

    it is listed as "Unconfirmed 257166.crdownload".
    All he has to do is click on the darned thing. How hard is that?
      My Computers


  8. Posts : 1,862
    Windows 10 Pro 2004 20H1
       #38

    "Unconfirmed 257166.crdownload"

    Chrome-related download issue -

    What is a .CRDOWNLOAD File and Can You Delete It?

    Try another browser.

    I right-clicked on the link in post #31 in that thread, and downloaded it with no issues using Edge.
      My Computer


  9. Posts : 7,607
    Windows 10 Home 20H2
       #39

    Ztruker said:
    As for the size of CBS.log, it will never be larger than 50KB. When it hits that, it gets renamed to CbsPersist_2020nnnnnnnnnn.log file and a new CBS.log gets started.
    My CBS.log was 4.15 MB, which was not renamed "CbsPersist_2020nnnnnnnnnn.log".
      My Computer


  10. Posts : 14,046
    Windows 11 Pro X64 22H2 22621.1848
    Thread Starter
       #40

    That means the remname and create process is not working. FOudn this:


    As a workaround, on Windows 7, if the "Windows Modules Installer" service is stopped, then starting it appears to trigger the log rotation process that creates a fresh cbs.log file and moves the old file into a compressed CbsPersist .cab archive. My 500mb log file got compressed down to 30mb.
    Try that for Windows 10 and see if it still works. If it does, CBS.LOG should be renamed to CbsPersist_2020nnnnnnnnnn.log. The next time Trusted Installer or SFC runs a new CBS.LOg will be created.
      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 11:18.
Find Us




Windows 10 Forums