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


  1. Posts : 41,472
    windows 10 professional version 1607 build 14393.969 64 bit
       #621

    For tuneup plus results please modify chkdsk results so that it's easier to skim /read the results:
    (multiple paragraphs instead of one paragraph)

    (For scannow, scanhealth, and restore health please modify to so that there is an empty row before and after results)

    Code:
        [SFC /ScanNow] 
    Beginning system scan.  This process will take some time.
    Beginning verification phase of system scan.
    Windows Resource Protection did not find any integrity violations.
    ==================================================================
        [DISM /online /cleanup-image /ScanHealth] 
    Deployment Image Servicing and Management tool
    Version: 10.0.18362.1379
    Image Version: 10.0.18363.1440
    No component store corruption detected.
    The operation completed successfully.
    ==================================================================
        [DISM /online /cleanup-image /RestoreHealth] 
    Deployment Image Servicing and Management tool
    Version: 10.0.18362.1379
    Image Version: 10.0.18363.1440
    The restore operation completed successfully.
    The operation completed successfully.
    ==================================================================
        [ChkDsk /scan] 
    The type of the file system is NTFS.
    Volume label is Local Disk.
    Stage 1: Examining basic file system structure ...
    747008 file records processed.                                                        
    File verification completed.
    23424 large file records processed.                                   
    0 bad file records processed.                                     
    Stage 2: Examining file name linkage ...
    14222 reparse records processed.                                      
    1061666 index entries processed.                                                       
    Index verification completed.
    0 unindexed files scanned.                                        
    0 unindexed files recovered to lost and found.                    
    14222 reparse records processed.                                      
    Stage 3: Examining security descriptors ...
    Security descriptor verification completed.
    157330 data files processed.                                           
    CHKDSK is verifying Usn Journal...
    33636568 USN bytes processed.                                                           
    Usn Journal verification completed.
    Windows has scanned the file system and found no problems.
    No further action is required.
    498797567 KB total disk space.
    194611916 KB in 451222 files.
    362544 KB in 157331 indexes.
    0 KB in bad sectors.
    865967 KB in use by the system.
    65536 KB occupied by the log file.
    302957140 KB available on disk.
    4096 bytes in each allocation unit.
    124699391 total allocation units on disk.
    75739285 allocation units available on disk.
    ==================================================================
    AutoReboot  
    TRUE        
    ==================================================================
        [Set AutoReboot = False] 
    Updating property(s) of '\\SURFACEPRO4\ROOT\CIMV2:Win32_OSRecoveryConfiguration.Name="Microsoft Windows 10 Pro|C:\\windows|\\Device\\Harddisk0\\Partition3"'
    
    Property(s) update successful.
    
    ==================================================================
    AutoReboot  
    FALSE       
    ==================================================================
    DebugInfoType  
    3              
    ==================================================================
        [Set DebugInfoType = 7] 
    Updating property(s) of '\\SURFACEPRO4\ROOT\CIMV2:Win32_OSRecoveryConfiguration.Name="Microsoft Windows 10 Pro|C:\\windows|\\Device\\Harddisk0\\Partition3"'
    
    Property(s) update successful.
    
    ==================================================================
    DebugInfoType  
    7              
    ==================================================================
        [WMIC PageFile list] 
    AllocatedBaseSize=3153
    CurrentUsage=1054
    Description=C:\pagefile.sys
    InstallDate=20210317135517.506656+000
    Name=C:\pagefile.sys
    PeakUsage=1055
    Status=
    TempPageFile=FALSE
    ==================================================================
    ==================================================================
        [Set AutomaticManagedPagefile = True] 
    No Instance(s) Available.
    
    ==================================================================
    ==================================================================
        [BcdEdit /enum {badmemory}] 
    RAM Defects
    -----------
    identifier              {badmemory}
    ==================================================================
      My Computer


  2. Posts : 7,607
    Windows 10 Home 20H2
       #622

    Ztruker said:
    What about changing the NET SESSION to FSUTIL DIRTY QUERY for checking Admin level in our scripts? Is rthis something that still needs to be done or is how it works now okay. It's okay for me as I don't really care about one or two flashes, zbook seems to be the only one who does care but he also does the majority of DEBUG work so his input is important.
    FSUTIL DIRTY QUERY has to be used as long as the scripts have to run in safe mode.
    The only way to kill the flash is to select "Run as administrator" on the context menu.
    Can you post the link to your LOGS.BAT?
      My Computer


  3. Posts : 7,607
    Windows 10 Home 20H2
       #623

    @zbook, you did not have to send me private messages.
    The active links go to a post which contains a broken download link because John has removed the file.
      My Computer


  4. Posts : 41,472
    windows 10 professional version 1607 build 14393.969 64 bit
       #624

    That's what I had.
    one drive, notepad script, zip, links
      My Computer


  5. Posts : 7,607
    Windows 10 Home 20H2
       #625

    zbook said:
    For tuneup plus results please modify chkdsk results so that it's easier to skim /read the results:
    Tuneup_plus_log (showing progress).bat

    I have left empty lines in the ChkDsk results in the above version, which will show the progress as per @einstein1969's suggestion. See whether it looks better.

    zbook said:
    (For scannow, scanhealth, and restore health please modify to so that there is an empty row before and after results)
    Do you mean leaving an empty line above and below the following line?

    ==================================================================
    Post problem reports here for Batch files for use in BSOD debugging Attached Files
      My Computer


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

    This is easier to scan / read (spacing)

    Code:
    ###########################################################
    # The following commands will be run in sequence.         #
    # The first 5 will take quite a while to run, be patient. #
    ###########################################################
    
    sfc /scannow
    dism /online /cleanup-image /scanhealth
    dism /online /cleanup-image /restorehealth
    sfc /scannow
    
    chkdsk /scan
    
    wmic recoveros get autoreboot
    wmic recoveros set autoreboot = false
    wmic recoveros get autoreboot
    wmic recoveros get DebugInfoType
    wmic recoveros set DebugInfoType = 7
    wmic recoveros get DebugInfoType
    
    wmic pagefile list /format:list
    wmic Computersystem where name="DESKTOP-9HEBUKS" get AutomaticManagedPagefile
    wmic Computersystem where name="DESKTOP-9HEBUKS" set AutomaticManagedPagefile=True
    wmic Computersystem where name="DESKTOP-9HEBUKS" get AutomaticManagedPagefile
    
    bcdedit /enum {badmemory}
    
    
    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 did not find any integrity violations.
    
    C:\WINDOWS\system32>dism /online /cleanup-image /scanhealth
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.1518
    
    Image Version: 10.0.17763.1577
    
    [==========================100.0%==========================] No component store corruption detected.
    The operation completed successfully.
    
    C:\WINDOWS\system32>dism /online /cleanup-image /restorehealth
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.1518
    
    Image Version: 10.0.17763.1577
    
    [==========================100.0%==========================] The restore operation completed successfully.
    The operation completed successfully.
    
    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 did not find any integrity violations.
    
    C:\WINDOWS\system32>chkdsk /scan
    The type of the file system is NTFS.
    
    Stage 1: Examining basic file system structure ...
      881920 file records processed.
    File verification completed.
      25084 large file records processed.
      0 bad file records processed.
    
    Stage 2: Examining file name linkage ...
      1453 reparse records processed.
      1171428 index entries processed.
    Index verification completed.
      0 unindexed files scanned.
      0 unindexed files recovered to lost and found.
      1453 reparse records processed.
    
    Stage 3: Examining security descriptors ...
    Security descriptor verification completed.
      144755 data files processed.
    CHKDSK is verifying Usn Journal...
      37114184 USN bytes processed.
    Usn Journal verification completed.
    
    Windows has scanned the file system and found no problems.
    No further action is required.
    
     248570090 KB total disk space.
     187313348 KB in 438758 files.
        379744 KB in 144756 indexes.
             0 KB in bad sectors.
       1003214 KB in use by the system.
         65536 KB occupied by the log file.
      59873784 KB available on disk.
    
          4096 bytes in each allocation unit.
      62142522 total allocation units on disk.
      14968446 allocation units available on disk.
    
    C:\WINDOWS\system32>wmic recoveros get autoreboot
    AutoReboot
    FALSE
    
    
    C:\WINDOWS\system32>wmic recoveros set autoreboot = false
    Updating property(s) of '\\DESKTOP-9HEBUKS\ROOT\CIMV2:Win32_OSRecoveryConfiguration.Name="Microsoft Windows 10 Pro|C:\\WINDOWS|\\Device\\Harddisk0\\Partition4"'
    Property(s) update successful.
    
    C:\WINDOWS\system32>wmic recoveros get autoreboot
    AutoReboot
    FALSE
    
    
    C:\WINDOWS\system32>wmic recoveros get DebugInfoType
    DebugInfoType
    7
    
    
    C:\WINDOWS\system32>wmic recoveros set DebugInfoType = 7
    Updating property(s) of '\\DESKTOP-9HEBUKS\ROOT\CIMV2:Win32_OSRecoveryConfiguration.Name="Microsoft Windows 10 Pro|C:\\WINDOWS|\\Device\\Harddisk0\\Partition4"'
    Property(s) update successful.
    
    C:\WINDOWS\system32>wmic recoveros get DebugInfoType
    DebugInfoType
    7
    
    
    C:\WINDOWS\system32>wmic pagefile list /format:list
    
    
    AllocatedBaseSize=30343
    CurrentUsage=910
    Description=C:\pagefile.sys
    InstallDate=20180430231751.753916-300
    Name=C:\pagefile.sys
    PeakUsage=987
    Status=
    TempPageFile=FALSE
    
    
    
    
    C:\WINDOWS\system32>wmic Computersystem where name="DESKTOP-9HEBUKS" get AutomaticManagedPagefile
    AutomaticManagedPagefile
    TRUE
    
    
    C:\WINDOWS\system32>wmic Computersystem where name="DESKTOP-9HEBUKS" set AutomaticManagedPagefile=True
    Updating property(s) of '\\DESKTOP-9HEBUKS\ROOT\CIMV2:Win32_ComputerSystem.Name="DESKTOP-9HEBUKS"'
    Property(s) update successful.
    
    C:\WINDOWS\system32>wmic Computersystem where name="DESKTOP-9HEBUKS" get AutomaticManagedPagefile
    AutomaticManagedPagefile
    TRUE
    
    
    C:\WINDOWS\system32>bcdedit /enum {badmemory}
    
    RAM Defects
    -----------
    identifier              {badmemory}
    
    C:\WINDOWS\system32>Echo off
       ###################################################################################
       #    How to capture batch file data and post in your thread in the BSOD forum     #
       #                                                                                 #
       #      Batch files and instructions for use in BSOD debugging[Part Two-Four]      #
       #                                                                                 #
       #        Press [V] to visit the above web page for detailed instructions.         #
       #        Press [C] to close this window.                                          #
       ###################################################################################



    Code:
        [SFC /ScanNow] 
    Beginning system scan.  This process will take some time.
    Beginning verification phase of system scan.
    Windows Resource Protection did not find any integrity violations.
    ==================================================================
        [DISM /online /cleanup-image /ScanHealth] 
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.1518
    Image Version: 10.0.17763.1577
    No component store corruption detected.
    The operation completed successfully.
    ==================================================================
        [DISM /online /cleanup-image /RestoreHealth] 
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.1518
    Image Version: 10.0.17763.1577
    The restore operation completed successfully.
    The operation completed successfully.
    ==================================================================
        [ChkDsk /Scan]  
    The type of the file system is NTFS.
    
    Stage 1: Examining basic file system structure ...
      881920 file records processed.                                               
             
    
    File verification completed.
      25084 large file records processed.                                   
    
      0 bad file records processed.                                     
    
    
    Stage 2: Examining file name linkage ...
      1452 reparse records processed.                                      
    
      1171426 index entries processed.                                             
              
    
    Index verification completed.
      0 unindexed files scanned.                                        
    
      0 unindexed files recovered to lost and found.                    
    
      1452 reparse records processed.                                      
    
    
    Stage 3: Examining security descriptors ...
    Security descriptor verification completed.
      144754 data files processed.                                           
    
    CHKDSK is verifying Usn Journal...
      36293624 USN bytes processed.                                                
               
    
    Usn Journal verification completed.
    
    Windows has scanned the file system and found no problems.
    No further action is required.
    
     248570090 KB total disk space.
     185600892 KB in 428672 files.
        374368 KB in 144755 indexes.
             0 KB in bad sectors.
       1002702 KB in use by the system.
         65536 KB occupied by the log file.
      61592128 KB available on disk.
    
          4096 bytes in each allocation unit.
      62142522 total allocation units on disk.
      15398032 allocation units available on disk.
    ==================================================================
    AutoReboot  
    FALSE       
    ==================================================================
        [Set AutoReboot = False] 
    Updating property(s) of 
    '\\DESKTOP-9HEBUKS\ROOT\CIMV2:Win32_OSRecoveryConfiguration.Name="Microsoft 
    Windows 10 Pro|C:\\WINDOWS|\\Device\\Harddisk0\\Partition4"'
    
    Property(s) update successful.
    
    ==================================================================
    AutoReboot  
    FALSE       
    ==================================================================
    DebugInfoType  
    7              
    ==================================================================
        [Set DebugInfoType = 7] 
    Updating property(s) of 
    '\\DESKTOP-9HEBUKS\ROOT\CIMV2:Win32_OSRecoveryConfiguration.Name="Microsoft 
    Windows 10 Pro|C:\\WINDOWS|\\Device\\Harddisk0\\Partition4"'
    
    Property(s) update successful.
    
    ==================================================================
    DebugInfoType  
    7              
    ==================================================================
        [WMIC PageFile list] 
    AllocatedBaseSize=30343
    CurrentUsage=925
    Description=C:\pagefile.sys
    InstallDate=20180430231751.753916-300
    Name=C:\pagefile.sys
    PeakUsage=987
    Status=
    TempPageFile=FALSE
    ==================================================================
    ==================================================================
        [Set AutomaticManagedPagefile = True] 
    No Instance(s) Available.
    
    ==================================================================
    ==================================================================
        [BcdEdit /enum {badmemory}] 
    RAM Defects
    -----------
    identifier              {badmemory}
    ==================================================================
    Last edited by zbook; 29 Mar 2021 at 16:09.
      My Computer


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

    @zbook, it is very difficult, if not impossible, to make Tuneup.log look exactly the same as the output of Tuneup.bat. I can only try my best to improve it at your suggestion.
      My Computer


  8. Posts : 41,472
    windows 10 professional version 1607 build 14393.969 64 bit
       #628

    In the top tuneup there is an empty row above and below the result for the first scannow:

    Code:
    Beginning verification phase of system scan.
    Verification 100% complete.
    
    Windows Resource Protection did not find any integrity violations.
    
    C:\WINDOWS\system32>dism /online /cleanup-image /scanhealth
    This makes it very easy to scan and see the result.

    In the top tuneup there is an empty row above and below the result for the second scannow:

    Code:
    Beginning verification phase of system scan.
    Verification 100% complete.
    
    Windows Resource Protection did not find any integrity violations.
    
    C:\WINDOWS\system32>chkdsk /scan
    The type of the file system is NTFS.

    In the bottom tuneup there is no empty row above or below the result for the first scannow:

    Code:
    Beginning verification phase of system scan.
    Windows Resource Protection did not find any integrity violations.
    ==================================================================
        [DISM /online /cleanup-image /ScanHealth]

    This makes it harder to scan and see the result.


    In the bottom tuneup there is no empty row above or below the result for the second scannow:

    The second scannow was missing.
    There should be a second scannow (after restore health).


    These scanhealth and restorehealth were relatively easy to scan:

    Code:
    Image Version: 10.0.17763.1577
    
    [==========================100.0%==========================] No component store corruption detected.
    The operation completed successfully.
    
    C:\WINDOWS\system32>dism /online /cleanup-image /restorehealth
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.1518
    
    Image Version: 10.0.17763.1577
    
    [==========================100.0%==========================] The restore operation completed successfully.
    The operation completed successfully.

    These scanhealth and restorehealth results blended into the paragraph text: (there were no empty rows to make the results stand out)

    Code:
    ==================================================================
        [DISM /online /cleanup-image /ScanHealth] 
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.1518
    Image Version: 10.0.17763.1577
    No component store corruption detected.
    The operation completed successfully.
    ==================================================================
        [DISM /online /cleanup-image /RestoreHealth] 
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.1518
    Image Version: 10.0.17763.1577
    The restore operation completed successfully.
    The operation completed successfully.
    ==================================================================


    What was the plus supposed to do that tuneup did not do?
      My Computer


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

    In this link:
    Windows memory diagnostic tool - auto runs?

    the OP typed in post #7 for:
    Tuneup_plus_log.bat Click here to go to the BSOD batch repository to download and run this batch file.


    Code:
    I've downloaded the tune-up file, but the operating instructions are another story. 
    They are part of a much larger file with many choices. According to the data in the download, 
    at least 30 pages. And the page count in the browser image is nowhere near the actuals 
    when trying to print the instructions out - which is seems reasonable to do, since generally, 
    running diagnostics with no other software alive or backgrounded/minimized is generally advised. 
    The tune up instructions in the browser download are just 2 pages, but a) the page division in 
    the browser file don't match printable sections - more properly, the pages covering tune up 
    printed are about re-boot with UEFI and further on, adjusting page numbers I wind up with pages 
    about powercfg. So, I've just about given trying to find which 2 pages, lots of wasted paper so far, 
    and I see no point in printing the whole file . . . .
    
    So as a strong suggestion - instructions for specific tools like tune up (and all the others in that 
    collage) should be a stand alone file.
    As for now - which printable A4 pages in that tools collage actually apply to tune up???
      My Computer


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

    zbook said:
    What was the plus supposed to do that tuneup did not do?
    Tuneup_plus_log.bat creates a LOG file on the desktop, while Tuneup.bat does not.

    I have just uploaded the version with progress status into the repository. I will try again to improve the LOG file at your suggestion.

    zbook said:
    In this link:
    Windows memory diagnostic tool - auto runs?

    the OP typed in post #7 for:
    Tuneup_plus_log.bat Click here to go to the BSOD batch repository to download and run this batch file.
    I have no printer. I don't know what will happen if the webpage is printed out.
    Why print it out?
      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 16:55.
Find Us




Windows 10 Forums