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


  1. Posts : 7,606
    Windows 10 Home 20H2
       #1111

    "Tuneup_plus_log.bat' uses WMIC.
      My Computer


  2. Posts : 41,412
    windows 10 professional version 1607 build 14393.969 64 bit
       #1112

    For tuneup plus when does sfcdetails run?

    In a recent thread the sfcdetails had no reports of the integrity violation or fix even though scannow reported that corruption was identified and fixed.

    The second scannow found no integrity violations.

    Can the script be modified so that the sfcdetails runs after any scannow that had found integrity violations?
    (there could be two reports)

    Code:
        Started on Sun 11/28/2021 at 17:01:31.30 
    
            [SFC /ScanNow] 
    
    Beginning system scan.  This process will take some time.
    
    Results: 
     
    Windows Resource Protection found corrupt files and successfully repaired them.
    
    For online repairs, details are included in the CBS log file located at 
    windir\Logs\CBS\CBS.log. For example C:\Windows\Logs\CBS\CBS.log. For offline
    repairs, details are included in the log file provided by the /OFFLOGFILE flag.
     
    ==================================================================
    
        Started on Sun 11/28/2021 at 17:07:00.92 
    
            [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 Sun 11/28/2021 at 17:11:20.94 
    
            [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. 
     
    ==================================================================
    
        Started on Sun 11/28/2021 at 17:15:24.56 
    
            [SFC /ScanNow] 
    
    Beginning system scan.  This process will take some time.
    
    Results: 
     
    Windows Resource Protection did not find any integrity violations.
     
    ==================================================================
    
    A TXT file named SFC_details.txt has been created.
     
    ==================================================================
    
        Started on Sun 11/28/2021 at 17:20:37.53 
    
            [ChkDsk /Scan]  
     
    The type of the file system is NTFS.
     
    Stage 1: Examining basic file system structure ... 
    473600 file records processed.                                                        
    File verification completed.
    Phase duration (File record verification): 9.48 seconds.
    7499 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.26 milliseconds.
     
    Stage 2: Examining file name linkage ... 
    3526 reparse records processed.                                      
    689706 index entries processed.                                                       
    Index verification completed.
    Phase duration (Index verification): 19.29 seconds.
    0 unindexed files scanned.                                        
    Phase duration (Orphan reconnection): 3.04 seconds.
    0 unindexed files recovered to lost and found.                    
    Phase duration (Orphan recovery to lost and found): 0.64 milliseconds.
    3526 reparse records processed.                                      
    Phase duration (Reparse point and Object ID verification): 21.19 milliseconds.
     
    Stage 3: Examining security descriptors ... 
    Security descriptor verification completed.
    Phase duration (Security descriptor verification): 54.85 milliseconds.
    108054 data files processed.                                           
    Phase duration (Data attribute verification): 0.13 milliseconds.
    CHKDSK is verifying Usn Journal...
    39637816 USN bytes processed.                                                           
    Usn Journal verification completed.
    Phase duration (USN journal verification): 168.04 milliseconds.
    
    Windows has scanned the file system and found no problems.
    
    No further action is required.
     
    124980278 KB total disk space. 
    28459396 KB in 296295 files.
    192108 KB in 108055 indexes.
    0 KB in bad sectors.
    585490 KB in use by the system.
    65536 KB occupied by the log file.
    95743284 KB available on disk.
     
    4096 bytes in each allocation unit. 
    31245069 total allocation units on disk.
    23935821 allocation units available on disk.
    Total duration: 32.08 seconds (32083 ms).
     
    ==================================================================
     
        Started on Sun 11/28/2021 at 17:21:19.02 
     
    AutoReboot   
     
    TRUE        
     
    ==================================================================
     
            [Set AutoReboot = False] 
     
    Updating property(s) of '\\AAM-SERVER\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 '\\AAM-SERVER\ROOT\CIMV2:Win32_OSRecoveryConfiguration.Name="Microsoft Windows 10 Pro|C:\\windows|\\Device\\Harddisk0\\Partition2"'
    
    Property(s) update successful.
    
    ==================================================================
     
    DebugInfoType   
     
    7              
     
    ==================================================================
    
            [WMIC PageFile list]
    
    AllocatedBaseSize=1280
    CurrentUsage=156
    Description=C:\pagefile.sys
    InstallDate=20191207020016.927748-300
    Name=C:\pagefile.sys
    PeakUsage=158
    Status=
    TempPageFile=FALSE
     
    ==================================================================
     
    AutomaticManagedPagefile   
     
    TRUE                      
     
    ==================================================================
    
            [Set AutomaticManagedPagefile = True]
    
    Updating property(s) of '\\AAM-SERVER\ROOT\CIMV2:Win32_ComputerSystem.Name="AAM-SERVER"'
    
    Property(s) update successful.
    
    ==================================================================
     
    AutomaticManagedPagefile   
     
    TRUE                      
     
    ==================================================================
    
            [BcdEdit /enum {badmemory}]
    
    RAM Defects
    -----------
    identifier              {badmemory}
     
    ==================================================================
    
        Finished on Sun 11/28/2021 at 17:21:21.37
        It took 19 minutes and 50 seconds to complete the operations.
      My Computer


  3. Posts : 7,606
    Windows 10 Home 20H2
       #1113

    zbook said:
    In a recent thread the sfcdetails had no reports of the integrity violation or fix even though scannow reported that corruption was identified and fixed.
    Has the OP uploaded the following TXT file, which should have been put into a ZIP file by "Tuneup_plus_log.bat"?

    zbook said:
    Code:
    ==================================================================
    
    A TXT file named SFC_details.txt has been created. 
    
    ==================================================================
      My Computer


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

    The sfc_details.txt file was viewed and there were no findings.
    So I was wondering the timing in the script to run the command.
    After the first scannow or after the second scannow?
    The sfc_details.txt typically displays no findings after the second scannow when the first scannow had corrected integrity violations.
      My Computer


  5. Posts : 7,606
    Windows 10 Home 20H2
       #1115

    The present version of "Tuneup_plus_log.bat" will create "SFC_details.txt" after the second "SFC /ScanNow".
      My Computer


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

    The sfc details needs to run immediately after the scannow that displayed integrity violations to capture the problem(s).

    Running scannow the second time appears to overshadow the results from the prior scannow so that sfc details no longer finds the problem(s).

    For a period of time please have the log collector create a sfc details after each scannow.

    If this pattern is confirmed then please modify the script to run sfc details immediately after any result other than scannow did not find any integrity violations.
      My Computer


  7. Posts : 7,606
    Windows 10 Home 20H2
       #1117

    zbook said:
    The sfc details needs to run immediately after the scannow that displayed integrity violations to capture the problem(s).
    Tuneup_plus_log.bat

    The above updated version will do the following:

    (1) Immediately create "SFC_details-1.txt" as long as the first "SFC /ScanNow" does not output "Windows Resource Protection did not find any integrity violations."
    (2) Immediately create "SFC_details-2.txt" as long as the second "SFC /ScanNow" does not output "Windows Resource Protection did not find any integrity violations."
      My Computer


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

    Thx.
    Will test in a new thread.
      My Computer


  9. Posts : 7,606
    Windows 10 Home 20H2
       #1119

    "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


  10. Posts : 41,412
    windows 10 professional version 1607 build 14393.969 64 bit
       #1120

    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


 

  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 09:00.
Find Us




Windows 10 Forums