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

  1. Ztruker's Avatar
    Posts : 13,512
    Windows 10 Pro X64 20H4 19042.746
    Thread Starter
       #641

    Matthew Wai said:
    NET SESSION caused the same problem even in normal mode in the following case:

    Using CMD script and VBScript to control Windows Update

    I think FSUTIL DIRTY QUERY should be used instead.
    Seems like a good idea as that will allow most of the batch files to run in Safe Mode or at least get into Admin mode. I'll start making the changes to each batch file I own.
      My Computers

  2. Ztruker's Avatar
    Posts : 13,512
    Windows 10 Pro X64 20H4 19042.746
    Thread Starter
       #642

    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.


    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???
    The instructions were never meant to be printed out. If you want to do that the best way is to copy all of Part Two, Run the batch file then paste it into Word, adjust the margins to 0.3 all around then it will print fairly well, something like this: Tuneup_plus_log.docx
      My Computers

  3. Matthew Wai's Avatar
    Posts : 5,096
    Windows 10 Home 20H2
       #643

    zbook said:
    If Ztruker agrees, please add to:
    Batch files for use in BSOD debugging
    I have written a new post:

    Gather_additional_dump_files.bat Click here to go to the BSOD batch repository to download and run this batch file.
      My Computer

  4. Ztruker's Avatar
    Posts : 13,512
    Windows 10 Pro X64 20H4 19042.746
    Thread Starter
       #644

    Added to repository Index and list of scripts .txt file:

    Post problem reports here for Batch files for use in BSOD debugging-image.png
      My Computers

  5. Matthew Wai's Avatar
    Posts : 5,096
    Windows 10 Home 20H2
       #645

    Ztruker said:
    The one thing I don't like about using the log file is that there is no output to the screen so there is no indication of what is happening. My concern is the user will think something has died or hung and terminate the batch file.
    Tuneup_plus_log.bat now shows the progress at the suggestion of einstein1969.



    Post problem reports here for Batch files for use in BSOD debugging-operation-2.jpg

    Post problem reports here for Batch files for use in BSOD debugging-progress-operation-5-.jpg

    zbook said:
    This makes it very easy to scan and see the result.
    The latest version of Tuneup_plus_log.bat shows the following results in the LOG file:
    Code:
        [SFC /ScanNow] 
    Beginning system scan.  This process will take some time.
    Results: 
     
    Windows Resource Protection did not find any integrity violations.
     
    ==================================================================
        [DISM /online /cleanup-image /ScanHealth] 
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.746
    Image Version: 10.0.19042.746 
     
    No component store corruption detected.
    The operation completed successfully.
     
    ==================================================================
        [DISM /online /cleanup-image /RestoreHealth] 
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.746
    Image Version: 10.0.19042.746 
     
    The restore operation completed successfully.
    The operation completed successfully.
     
    ==================================================================
    The second "SFC /ScanNow" was skipped, as the first had output the following:
    Windows Resource Protection did not find any integrity violations. 
    ==================================================================
        [ChkDsk /Scan]  
    The type of the file system is NTFS.
    Volume label is Windows 10.
     
    Stage 1: Examining basic file system structure ... 
    254720 file records processed.                                                        
    File verification completed.
    Phase duration (File record verification): 27.55 seconds.
    5986 large file records processed.                                   
    Phase duration (Orphan file record recovery): 0.00 milliseconds.
    0 bad file records processed.                                     
    Phase duration (Bad file record checking): 0.25 milliseconds.
     
    Stage 2: Examining file name linkage ... 
    984 reparse records processed.                                      
    374400 index entries processed.                                                       
    Index verification completed.
    Phase duration (Index verification): 1.18 minutes.
    0 unindexed files scanned.                                        
    Phase duration (Orphan reconnection): 419.41 milliseconds.
    0 unindexed files recovered to lost and found.                    
    Phase duration (Orphan recovery to lost and found): 0.90 milliseconds.
    984 reparse records processed.                                      
    Phase duration (Reparse point and Object ID verification): 14.89 milliseconds.
     
    Stage 3: Examining security descriptors ... 
    Security descriptor verification completed.
    Phase duration (Security descriptor verification): 186.72 milliseconds.
    59841 data files processed.                                           
    Phase duration (Data attribute verification): 0.15 milliseconds.
    CHKDSK is verifying Usn Journal...
    41103816 USN bytes processed.                                                          
    Usn Journal verification completed.
    Phase duration (USN journal verification): 1.22 seconds.
     
    Windows has scanned the file system and found no problems. 
    No further action is required.
     
    84304867 KB total disk space. 
    22789896 KB in 173502 files.
    131236 KB in 59842 indexes.
    0 KB in bad sectors.
    367771 KB in use by the system.
    65536 KB occupied by the log file.
    61015964 KB available on disk.
     
    4096 bytes in each allocation unit. 
    21076216 total allocation units on disk.
    15253991 allocation units available on disk.
    Total duration: 1.67 minutes (100306 ms).
     
    ==================================================================
    
    AutoReboot  
    FALSE       
     
    ==================================================================
        [Set AutoReboot = False] 
    Updating property(s) of '\\DESKTOP\ROOT\CIMV2:Win32_OSRecoveryConfiguration.Name="Microsoft Windows 10 Home|C:\\Windows|\\Device\\Harddisk0\\Partition3"'
    
    Property(s) update successful.
    
    ==================================================================
     
    AutoReboot  
    FALSE       
     
    ==================================================================
     
    DebugInfoType  
    7              
     
    ==================================================================
        [Set DebugInfoType = 7] 
    Updating property(s) of '\\DESKTOP\ROOT\CIMV2:Win32_OSRecoveryConfiguration.Name="Microsoft Windows 10 Home|C:\\Windows|\\Device\\Harddisk0\\Partition3"'
    
    Property(s) update successful.
    
    ==================================================================
     
    DebugInfoType  
    7              
     
    ==================================================================
        [WMIC PageFile list] 
    AllocatedBaseSize=960
    CurrentUsage=30
    Description=C:\pagefile.sys
    InstallDate=20201219141201.390506+480
    Name=C:\pagefile.sys
    PeakUsage=32
    Status=
    TempPageFile=FALSE
     
    ==================================================================
     
    AutomaticManagedPagefile  
    TRUE                      
     
    ==================================================================
        [Set AutomaticManagedPagefile = True] 
    Updating property(s) of '\\DESKTOP\ROOT\CIMV2:Win32_ComputerSystem.Name="DESKTOP"'
    
    Property(s) update successful.
    
    ==================================================================
     
    AutomaticManagedPagefile  
    TRUE                      
     
    ==================================================================
        [BcdEdit /enum {badmemory}] 
    RAM Defects
    -----------
    identifier              {badmemory}
     
    ==================================================================
      My Computer

  6. Ztruker's Avatar
    Posts : 13,512
    Windows 10 Pro X64 20H4 19042.746
    Thread Starter
       #646

    Just ran it, looks good Matthew.

    One thing I would like to see in the log file is time stamps:


    Code:
      04/05/2021 07:12:49 PM
    
      [SFC /ScanNow] 
    Beginning system scan.  This process will take some time.
    Results: 
     
    Windows Resource Protection did not find any integrity violations.
     
    ==================================================================
    04/05/2021 12:33:22 PM   
     [DISM /online /cleanup-image /ScanHealth] 
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    Image Version: 10.0.19042.906 
     
    No component store corruption detected.
    The operation completed successfully.
     
    ==================================================================
    
    04/05/2021 16:12:41 PM
        [DISM /online /cleanup-image /RestoreHealth] 
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    Image Version: 10.0.19042.906 
     
    The restore operation completed successfully.
    The operation completed successfully.
      My Computers

  7. Matthew Wai's Avatar
    Posts : 5,096
    Windows 10 Home 20H2
       #647

    Ztruker said:
    One thing I would like to see in the log file is time stamps:
    Your humble servant has done what you like in the updated version: Tuneup_plus_log.bat
    Code:
        Started on Tue 04/06/2021 at 16:25:55.06 
            [SFC /ScanNow] 
    Beginning system scan.  This process will take some time.
    Results: 
     
    Windows Resource Protection did not find any integrity violations.
     
    ==================================================================
        Started on Tue 04/06/2021 at 16:33:45.41 
            [DISM /online /cleanup-image /ScanHealth] 
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.746
    Image Version: 10.0.19042.746 
     
    No component store corruption detected.
    The operation completed successfully.
     
    ==================================================================
        Started on Tue 04/06/2021 at 16:48:07.66 
            [DISM /online /cleanup-image /RestoreHealth] 
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.746
    Image Version: 10.0.19042.746 
     
    The restore operation completed successfully.
    The operation completed successfully.
     
    ==================================================================
    The second "SFC /ScanNow" was skipped, as the first had output the following:
    Windows Resource Protection did not find any integrity violations. 
    ==================================================================
        Started on Tue 04/06/2021 at 17:01:18.50 
            [ChkDsk /Scan]  
    The type of the file system is NTFS.
    Volume label is Windows 10.
     
    Stage 1: Examining basic file system structure ... 
    254720 file records processed.                                                        
    File verification completed.
    Phase duration (File record verification): 28.12 seconds.
    5986 large file records processed.                                   
    Phase duration (Orphan file record recovery): 0.00 milliseconds.
    0 bad file records processed.                                     
    Phase duration (Bad file record checking): 0.10 milliseconds.
     
    Stage 2: Examining file name linkage ... 
    992 reparse records processed.                                      
    374494 index entries processed.                                                       
    Index verification completed.
    Phase duration (Index verification): 1.14 minutes.
    0 unindexed files scanned.                                        
    Phase duration (Orphan reconnection): 474.04 milliseconds.
    0 unindexed files recovered to lost and found.                    
    Phase duration (Orphan recovery to lost and found): 0.17 milliseconds.
    992 reparse records processed.                                      
    Phase duration (Reparse point and Object ID verification): 10.26 milliseconds.
     
    Stage 3: Examining security descriptors ... 
    Security descriptor verification completed.
    Phase duration (Security descriptor verification): 49.45 milliseconds.
    59888 data files processed.                                           
    Phase duration (Data attribute verification): 0.05 milliseconds.
    CHKDSK is verifying Usn Journal...
    36171232 USN bytes processed.                                                          
    Usn Journal verification completed.
    Phase duration (USN journal verification): 434.56 milliseconds.
     
    Windows has scanned the file system and found no problems. 
    No further action is required.
     
    84304867 KB total disk space. 
    24243388 KB in 173797 files.
    131444 KB in 59889 indexes.
    0 KB in bad sectors.
    362651 KB in use by the system.
    65536 KB occupied by the log file.
    59567384 KB available on disk.
     
    4096 bytes in each allocation unit. 
    21076216 total allocation units on disk.
    14891846 allocation units available on disk.
    Total duration: 1.63 minutes (97979 ms).
     
    ==================================================================
        Started on Tue 04/06/2021 at 17:03:37.50 
     
    AutoReboot  
    FALSE       
     
    ==================================================================
            [Set AutoReboot = False] 
    Updating property(s) of '\\DESKTOP\ROOT\CIMV2:Win32_OSRecoveryConfiguration.Name="Microsoft Windows 10 Home|C:\\Windows|\\Device\\Harddisk0\\Partition3"'
    
    Property(s) update successful.
    
    ==================================================================
     
    AutoReboot  
    FALSE       
     
    ==================================================================
     
    DebugInfoType  
    7              
     
    ==================================================================
            [Set DebugInfoType = 7] 
    Updating property(s) of '\\DESKTOP\ROOT\CIMV2:Win32_OSRecoveryConfiguration.Name="Microsoft Windows 10 Home|C:\\Windows|\\Device\\Harddisk0\\Partition3"'
    
    Property(s) update successful.
    
    ==================================================================
     
    DebugInfoType  
    7              
     
    ==================================================================
            [WMIC PageFile list] 
    AllocatedBaseSize=960
    CurrentUsage=36
    Description=C:\pagefile.sys
    InstallDate=20201219141201.390506+480
    Name=C:\pagefile.sys
    PeakUsage=37
    Status=
    TempPageFile=FALSE
     
    ==================================================================
     
    AutomaticManagedPagefile  
    TRUE                      
     
    ==================================================================
            [Set AutomaticManagedPagefile = True] 
    Updating property(s) of '\\DESKTOP\ROOT\CIMV2:Win32_ComputerSystem.Name="DESKTOP"'
    
    Property(s) update successful.
    
    ==================================================================
     
    AutomaticManagedPagefile  
    TRUE                      
     
    ==================================================================
            [BcdEdit /enum {badmemory}] 
    RAM Defects
    -----------
    identifier              {badmemory}
     
    ==================================================================
        Finished on Tue 04/06/2021 at 17:03:39.41
      My Computer

  8. Ztruker's Avatar
    Posts : 13,512
    Windows 10 Pro X64 20H4 19042.746
    Thread Starter
       #648

    I like it Matthew. Gives start date/time info and makes it easy to see how long each op took to run.

    Thank you.
      My Computers


  9. Posts : 38,400
    windows 10 professional version 1607 build 14393.969 64 bit
       #649

    Which post / thread has the memory.dmp command?

    If it's successful in multiple threads then let's add to the batch files.

    Which on the batch list are known to pass / fail with each Windows 7 and 8?
      My Computer

  10. Matthew Wai's Avatar
    Posts : 5,096
    Windows 10 Home 20H2
       #650

    Code:
    Compress-Archive -Path "$env:homeDrive\Windows\MEMORY.DMP" -DestinationPath "$env:homeDrive$env:homePath\Desktop\Memory_dmp"

    Replace the highlighted part with the correct desktop folder path if the desktop folder has been relocated.
    The problem can be fixed once and for all as long as a batch script is used instead of a command.
      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 23:05.
Find Us




Windows 10 Forums