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

  1. Matthew Wai's Avatar
    Posts : 6,587
    Windows 10 Home 20H2
       #1121

    "C:\Users\Peter & Mary\Desktop"

    If a user puts "Tuneup.bat" into the above "Desktop" folder, the script will not work.
    If a user puts "Tuneup_plus_log.bat" into the same folder, the script will still work.

    There is no guarantee that a username will not contain a special character.
      My Computer


  2. Posts : 39,310
    windows 10 professional version 1607 build 14393.969 64 bit
       #1122

    This was the 41 minute run on this computer:

    Code:
        Started on Mon 11/29/2021 at 23:30:46.65 
    
            [SFC /ScanNow] 
    
    Beginning system scan.  This process will take some time.
    
    Results: 
     
    Windows Resource Protection did not find any integrity violations.
     
    ==================================================================
    
        Started on Mon 11/29/2021 at 23:45:47.72 
    
            [DISM /online /cleanup-image /ScanHealth] 
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Image Version: 10.0.19043.1348 
     
    No component store corruption detected.
    
    The operation completed successfully. 
     
    ==================================================================
    
        Started on Mon 11/29/2021 at 23:52:31.91 
    
            [DISM /online /cleanup-image /RestoreHealth] 
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Image Version: 10.0.19043.1348 
     
    The restore operation completed successfully.
    
    The operation completed successfully. 
     
    ==================================================================
    
    The second "SFC /ScanNow" was skipped, as the first output the following:
    
    Windows Resource Protection did not find any integrity violations.
     
    ==================================================================
    
        Started on Tue 11/30/2021 at  0:03:30.36 
    
            [ChkDsk /Scan]  
     
    The type of the file system is NTFS.
    Volume label is Windows.
     
    Stage 1: Examining basic file system structure ... 
    949504 file records processed.                                                        
    File verification completed.
    Phase duration (File record verification): 1.25 minutes.
    7866 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.06 milliseconds.
     
    Stage 2: Examining file name linkage ... 
    1130 reparse records processed.                                      
    1197660 index entries processed.                                                       
    Index verification completed.
    Phase duration (Index verification): 6.13 minutes.
    0 unindexed files scanned.                                        
    Phase duration (Orphan reconnection): 9.69 seconds.
    0 unindexed files recovered to lost and found.                    
    Phase duration (Orphan recovery to lost and found): 2.29 milliseconds.
    1130 reparse records processed.                                      
    Phase duration (Reparse point and Object ID verification): 7.69 milliseconds.
     
    Stage 3: Examining security descriptors ... 
    Security descriptor verification completed.
    Phase duration (Security descriptor verification): 269.35 milliseconds.
    124079 data files processed.                                           
    Phase duration (Data attribute verification): 0.19 milliseconds.
    CHKDSK is verifying Usn Journal...
    35277928 USN bytes processed.                                                           
    Usn Journal verification completed.
    Phase duration (USN journal verification): 586.53 milliseconds.
    
    Windows has scanned the file system and found no problems.
    
    No further action is required.
     
    722633727 KB total disk space. 
    226554240 KB in 425241 files.
    293424 KB in 124080 indexes.
    0 KB in bad sectors.
    1080271 KB in use by the system.
    65536 KB occupied by the log file.
    494705792 KB available on disk.
     
    4096 bytes in each allocation unit. 
    180658431 total allocation units on disk.
    123676448 allocation units available on disk.
    Total duration: 7.56 minutes (454064 ms).
     
    ==================================================================
     
        Started on Tue 11/30/2021 at  0:11:57.73 
     
    AutoReboot   
     
    FALSE       
     
    ==================================================================
     
            [Set AutoReboot = False] 
     
    Updating property(s) of '\\DESKTOP-K2CP43S\ROOT\CIMV2:Win32_OSRecoveryConfiguration.Name="Microsoft Windows 10 Pro|C:\\WINDOWS|\\Device\\Harddisk0\\Partition2"'
    
    Property(s) update successful.
    
    ==================================================================
     
    AutoReboot   
     
    FALSE       
     
    ==================================================================
     
    DebugInfoType   
     
    7              
     
    ==================================================================
    
            [Set DebugInfoType = 7]
    
    Updating property(s) of '\\DESKTOP-K2CP43S\ROOT\CIMV2:Win32_OSRecoveryConfiguration.Name="Microsoft Windows 10 Pro|C:\\WINDOWS|\\Device\\Harddisk0\\Partition2"'
    
    Property(s) update successful.
    
    ==================================================================
     
    DebugInfoType   
     
    7              
     
    ==================================================================
    
            [WMIC PageFile list]
    
    AllocatedBaseSize=30795
    CurrentUsage=5544
    Description=C:\pagefile.sys
    InstallDate=20210123182308.249920-360
    Name=C:\pagefile.sys
    PeakUsage=5592
    Status=
    TempPageFile=FALSE
     
    ==================================================================
     
    AutomaticManagedPagefile   
     
    TRUE                      
     
    ==================================================================
    
            [Set AutomaticManagedPagefile = True]
    
    Updating property(s) of '\\DESKTOP-K2CP43S\ROOT\CIMV2:Win32_ComputerSystem.Name="DESKTOP-K2CP43S"'
    
    Property(s) update successful.
    
    ==================================================================
     
    AutomaticManagedPagefile   
     
    TRUE                      
     
    ==================================================================
    
            [BcdEdit /enum {badmemory}]
    
    RAM Defects
    -----------
    identifier              {badmemory}
     
    ==================================================================
    
        Finished on Tue 11/30/2021 at  0:12:02.07
        It took 41 minutes and 15 seconds to complete the operations.
      My Computer

  3. Matthew Wai's Avatar
    Posts : 6,587
    Windows 10 Home 20H2
       #1123

    @zbook, you can deliberately cause "integrity violations" simply by using the following:

    Using CMD script and VBScript to control Windows Update
      My Computer


  4. Posts : 39,310
    windows 10 professional version 1607 build 14393.969 64 bit
       #1124

    Will wait for new threads.
      My Computer


  5. Posts : 39,310
    windows 10 professional version 1607 build 14393.969 64 bit
       #1125

    From another computer:

    Code:
        Started on Tue 11/30/2021 at  0:36:47.26 
    
            [SFC /ScanNow] 
    
    Beginning system scan.  This process will take some time.
    
    Results: 
     
    Windows Resource Protection did not find any integrity violations.
     
    ==================================================================
    
        Started on Tue 11/30/2021 at  0:43:38.07 
    
            [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. 
     
    ==================================================================
    
        Started on Tue 11/30/2021 at  0:45:23.41 
    
            [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. 
     
    ==================================================================
    
    The second "SFC /ScanNow" was skipped, as the first output the following:
    
    Windows Resource Protection did not find any integrity violations.
     
    ==================================================================
    
        Started on Tue 11/30/2021 at  0:46:56.52 
    
            [ChkDsk /Scan]  
     
    The type of the file system is NTFS.
     
    Stage 1: Examining basic file system structure ... 
    881920 file records processed.                                                        
    File verification completed.
    26342 large file records processed.                                   
    0 bad file records processed.                                     
     
    Stage 2: Examining file name linkage ... 
    1373 reparse records processed.                                      
    1140166 index entries processed.                                                       
    Index verification completed.
    0 unindexed files scanned.                                        
    0 unindexed files recovered to lost and found.                    
    1373 reparse records processed.                                      
     
    Stage 3: Examining security descriptors ... 
    Security descriptor verification completed.
    129124 data files processed.                                           
    CHKDSK is verifying Usn Journal...
    36108432 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. 
    212861152 KB in 407341 files.
    383772 KB in 129125 indexes.
    0 KB in bad sectors.
    1002398 KB in use by the system.
    65536 KB occupied by the log file.
    34322768 KB available on disk.
     
    4096 bytes in each allocation unit. 
    62142522 total allocation units on disk.
    8580692 allocation units available on disk.
     
    ==================================================================
     
        Started on Tue 11/30/2021 at  0:47:46.06 
     
    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=15872
    CurrentUsage=269
    Description=C:\pagefile.sys
    InstallDate=20180430231751.753916-300
    Name=C:\pagefile.sys
    PeakUsage=270
    Status=
    TempPageFile=FALSE
     
    ==================================================================
     
    AutomaticManagedPagefile   
     
    TRUE                      
     
    ==================================================================
    
            [Set AutomaticManagedPagefile = True]
    
    Updating property(s) of '\\DESKTOP-9HEBUKS\ROOT\CIMV2:Win32_ComputerSystem.Name="DESKTOP-9HEBUKS"'
    
    Property(s) update successful.
    
    ==================================================================
     
    AutomaticManagedPagefile   
     
    TRUE                      
     
    ==================================================================
    
            [BcdEdit /enum {badmemory}]
    
    RAM Defects
    -----------
    identifier              {badmemory}
     
    ==================================================================
    
        Finished on Tue 11/30/2021 at  0:47:47.23
        It took 11 minutes and 0 seconds to complete the operations.
      My Computer

  6. Matthew Wai's Avatar
    Posts : 6,587
    Windows 10 Home 20H2
       #1126

    No UEFI BIOS Access in Windows 10 Pro

    In the above case, the first "SFC /ScanNow" output "Windows Resource Protection found corrupt files and successfully repaired them". I wonder whether the second "SFC /ScanNow" should be skipped when the first one has successfully repaired the files.
      My Computer


  7. Posts : 39,310
    windows 10 professional version 1607 build 14393.969 64 bit
       #1127

    The second scannow is performed to confirm that there are no integrity violations.

    The confirmation does not have to be performed.

    On most computers with SSD it takes 11 minutes or less to run all of the above commands.
    The HD which has some bad sectors took 41 minutes to run all of the above commands.

    In this link it is suggested to run scannow 3 times.

    Run SFC Command in Windows 10

    I've not yet seen a third scannow fix problems that 2 could not fix.

    For now let's leave the script as is.
    If users complain about a long run time then lets modify it.
    With the script running in the background the run time should be ok.
    The exception could be any computer that has numerous applications in use with high percentages displayed on task manager.




    Code:
    If SFC could not fix something, then run the command again to see if it may be able to the next time. Sometimes it may take running the sfc /scannow command up to 3 times with Fast Startup turned off and restarting the computer after each time to completely fix everything that it's able to.
    
    If not, then run the Dism /Online /Cleanup-Image /RestoreHealth (requires Internet connection) command to repair any component store corruption, restart the PC afterwards, and try the sfc /scannow command again.
    
    If still not, then you could refresh Windows 10, or do a system restore using a restore point dated before the bad system file occured to fix it. You may need to repeat doing a system restore until you find a older restore point that may work.
    
    When running SFC offline (at boot), SFC logging in the CBS.log file is not supported to be able to create a sfcdetails.txt file in OPTION FIVE below.
      My Computer


  8. Posts : 39,310
    windows 10 professional version 1607 build 14393.969 64 bit
       #1128

    There have been multiple threads in which V2 was unable to collect files / folders.
    Once the installed antivirus was removed the missing files were collected.

    For Windows upgrades these non-Microsoft software are routinely uninstalled:
    a) antivirus
    b) firewall
    c) drive encryption


    If possible please create commands to identify the above so that a separate script can run.
    If the script works then the commands may be able to be added to V2 for testing purposes.
    If the commands are not blocked during the V2 run then they may be able to be added to V2.
      My Computer

  9. Matthew Wai's Avatar
    Posts : 6,587
    Windows 10 Home 20H2
       #1129

    Perhaps you should contact Spectrum via the following thread:

    Improving the Log Collection Script
      My Computer


  10. Posts : 39,310
    windows 10 professional version 1607 build 14393.969 64 bit
       #1130

    There were multiple posts in that thread during the past year.

    Had you seen him post?
      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 17:41.
Find Us




Windows 10 Forums