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

Page 1 of 150 1231151101 ... LastLast

  1. Posts : 14,046
    Windows 11 Pro X64 22H2 22621.1848
       #1

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


    Use this thread to report any problems you find with any of the batch scripts in

    Batch files for use in BSOD debugging

    or if you have a suggestion.
    Last edited by Ztruker; 12 Oct 2020 at 23:04.
      My Computers


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

    Three of these hyperlinks (on 10/12) did not open the applicable link (10, 11, and 12)

    They opened:
    Batch files for use in BSOD debugging

    Part Three
    Index of Batch Scripts for BSOD debugging



    1. Tuneup.bat Run SFC, DISM and CHKDSK commands and use WMIC to change some settings
    2. DiskParInfo.bat Collect WinRE, Boot Manager and Hard Drive information
    3. Create_system_information_files.bat Generate a System Information file of your computer via a menu..
    4. chkdskFromEvent.bat Extract all chkdsk information from Application section of Event Viewer.
    5. SFCfromFile.bat Extract all SFC entries from CBS.log or CBSPERSIST*.log (if necessary).
    6. LOGS.bat Windows Standard Log Collection w/ EventSearch (Technet)
    7. Tuneup1.bat Run SFC, DISM and CHKDSK commands to repair system files and folders.
    8. Tuneup2.bat Runs WMIC and BCDEDIT commands to set some basic startup, debug and dump settings.
    9. GetMemoryConfiguration.bat Get memory configuration data via Powershell
    10. GenFileList.bat Generate a List of Files and Folders for a Folder from File Explorer
    11. getWindowsUpdateList.bat Extract a list of all Windows Updates applied to a system
    12. Get_Powercfg_info.bat Use Powershell Powercfg commands to extract power and

      My Computer


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

    Code:
    Updating registry
    The operation completed successfully.
    The operation completed successfully.
    The operation completed successfully.
    The operation completed successfully.
    Creating C:\Users\aaaaaaaa\GenFileList1.bat
    
    Creating C:\Users\aaaaaaaa\GenFileList2.bat
    
    
    #############################################################################
    # To use, Open File Explorer, navigate to the folder above the one you want #
    # to get a directory list of.                                               #
    # Press the Shift key and Right click on the folder you want the directory  #
    # list for and select Create File List. Notepad will open with the contents #
    # of the directory.                                                         #
    #                                                                           #
    # The batch file used to gather the directory info is . You can  #
    # change that however you want to control the directory output you see.     #
    #############################################################################
    Press any key to continue . . .



    Code:
    Removing entries from registry
    The operation completed successfully.
    The operation completed successfully.
    Deleting Batch files.
    
    ######################################################
    # Registry entries and batch files have been deleted #
    ######################################################
    Press any key to continue . . .



    See above highlighted areas.




    Both scripts were run to change the registry.

    How can the registry section(s) be viewed / checked to confirm the changes?
    When are reboots before checking required?
    Last edited by zbook; 13 Oct 2020 at 00:03.
      My Computer


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

    zbook said:
    Three of these hyperlinks (on 10/12) did not open the applicable link (10, 11, and 12)

    They opened:
    Batch files for use in BSOD debugging

    Part Three
    Index of Batch Scripts for BSOD debugging



    1. Tuneup.bat Run SFC, DISM and CHKDSK commands and use WMIC to change some settings
    2. DiskParInfo.bat Collect WinRE, Boot Manager and Hard Drive information
    3. Create_system_information_files.bat Generate a System Information file of your computer via a menu..
    4. chkdskFromEvent.bat Extract all chkdsk information from Application section of Event Viewer.
    5. SFCfromFile.bat Extract all SFC entries from CBS.log or CBSPERSIST*.log (if necessary).
    6. LOGS.bat Windows Standard Log Collection w/ EventSearch (Technet)
    7. Tuneup1.bat Run SFC, DISM and CHKDSK commands to repair system files and folders.
    8. Tuneup2.bat Runs WMIC and BCDEDIT commands to set some basic startup, debug and dump settings.
    9. GetMemoryConfiguration.bat Get memory configuration data via Powershell
    10. GenFileList.bat Generate a List of Files and Folders for a Folder from File Explorer
    11. getWindowsUpdateList.bat Extract a list of all Windows Updates applied to a system
    12. Get_Powercfg_info.bat Use Powershell Powercfg commands to extract power and

    They all work correctly for me.
      My Computers


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

    zbook said:
    Code:
    Updating registry
    The operation completed successfully.
    The operation completed successfully.
    The operation completed successfully.
    The operation completed successfully.
    Creating C:\Users\aaaaaaaa\GenFileList1.bat
    
    Creating C:\Users\aaaaaaaa\GenFileList2.bat
    
    #############################################################################
    # To use, Open File Explorer, navigate to the folder above the one you want #
    # to get a directory list of.                                               #
    # Press the Shift key and Right click on the folder you want the directory  #
    # list for and select Create File List. Notepad will open with the contents #
    # of the directory.                                                         #
    #                                                                           #
    # The batch file used to gather the directory info is . You can  #
    # change that however you want to control the directory output you see.     #
    #############################################################################
    Press any key to continue . . .
    Code:
    Removing entries from registry
    The operation completed successfully.
    The operation completed successfully.
    Deleting Batch files.
    
    ######################################################
    # Registry entries and batch files have been deleted #
    ######################################################
    Press any key to continue . . .

    See above highlighted areas.


    Both scripts were run to change the registry.

    How can the registry section(s) be viewed / checked to confirm the changes?
    When are reboots before checking required?


    Try it, does it work? If so the registry entries are correct.

    Otherwise, look at the batch script to see the registry entries being added.

    Code:
    (REG Add "HKCR\AllFilesystemObjects\shell\printDir1" /D "Create File List" /T REG_SZ /F)
    (REG Add "HKCR\AllFilesystemObjects\shell\printDir1\Command" /VE /D """"%batchfile1%""" """%%V"""" /F)
    (REG Add "HKCR\AllFilesystemObjects\shell\printDir2" /D "Create File List wSubs" /T REG_SZ /F)
    (REG Add "HKCR\AllFilesystemObjects\shell\printDir2\Command" /VE /D """"%batchfile2%""" """%%V"""" /F)

    Run reg query "HKCR\AllFilesystemObjects\shell" from a Command Prompt and you'll see something like this:

    Code:
    reg query "HKCR\AllFilesystemObjects\shell\
    
    HKEY_CLASSES_ROOT\AllFilesystemObjects\shell
        printDir    REG_SZ    Create FileList
        command    REG_SZ    c:\users\ztruk\GenFileList.bat "%V"
    
    HKEY_CLASSES_ROOT\AllFilesystemObjects\shell\LaunchWorkfoldersControl
    HKEY_CLASSES_ROOT\AllFilesystemObjects\shell\OfflineFilesLaunchSyncCenter
    HKEY_CLASSES_ROOT\AllFilesystemObjects\shell\printDir1
    HKEY_CLASSES_ROOT\AllFilesystemObjects\shell\printDir2
    You can then query the subkeys if you want to go further:

    Code:
    reg query "HKCR\AllFilesystemObjects\shell\printdir1"
    
    HKEY_CLASSES_ROOT\AllFilesystemObjects\shell\printdir1
        (Default)    REG_SZ    Create File List
    
    HKEY_CLASSES_ROOT\AllFilesystemObjects\shell\printdir1\Command
    Code:
    reg query "HKCR\AllFilesystemObjects\shell\printdir1\command"
    
    HKEY_CLASSES_ROOT\AllFilesystemObjects\shell\printdir1\command
        (Default)    REG_SZ    "C:\Users\ztruk\GenFileList1.bat" "%V"
    Code:
    reg query "HKCR\AllFilesystemObjects\shell\printdir2"
    
    HKEY_CLASSES_ROOT\AllFilesystemObjects\shell\printdir2
        (Default)    REG_SZ    Create File List wSubs
    
    HKEY_CLASSES_ROOT\AllFilesystemObjects\shell\printdir2\Command
    
    reg query "HKCR\AllFilesystemObjects\shell\printdir2\command"
    
    HKEY_CLASSES_ROOT\AllFilesystemObjects\shell\printdir2\command
        (Default)    REG_SZ    "C:\Users\ztruk\GenFileList2.bat" "%V"
    No reboot is needed.
      My Computers


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

    The command displayed:

    Code:
    Microsoft Windows [Version 10.0.17763.1282]
    (c) 2018 Microsoft Corporation. All rights reserved.
    
    C:\WINDOWS\system32>reg query "HKCR\AllFilesystemObjects\shell"
    
    HKEY_CLASSES_ROOT\AllFilesystemObjects\shell\LaunchWorkfoldersControl
    HKEY_CLASSES_ROOT\AllFilesystemObjects\shell\OfflineFilesLaunchSyncCenter
    
    C:\WINDOWS\system32>
      My Computer


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

    Did you run the batch file yet?

    Run it again, and capture the Command Prompt output and post it here please.

    Change @echo off to @Echo on at the top of the batch file first.
      My Computers


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

    It was ran once and then it was reversed with the next bat file.

    Did you want me to run each again?



    When copy and paste into a post the image font size varies.
    For example:





    Run:

    Tuneup.bat

    LOGS.bat

    Tuneup.bat



    What needs to be done to make them with similar font size?
      My Computer


  9. Posts : 21,421
    19044.1586 - 21H2 Pro x64
       #9

    Thanks to whomever fixed broken links 10-12 in table 3 I reported to @Ztruker yesterday via PM.

    What is the huge binary file that gets created? Sorry, I forget the name. Tell me if I need to specify it.
      My Computer


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

    zbook said:
    Did you want me to run each again?
    Try running the following commands via an elevated Command Prompt.

    (REG Add "HKCR\AllFilesystemObjects\shell\printDir1" /D "Create File List" /T REG_SZ /F)
    (REG Add "HKCR\AllFilesystemObjects\shell\printDir1\Command" /VE /D """"%batchfile1%""" """%%V"""" /F)
    (REG Add "HKCR\AllFilesystemObjects\shell\printDir2" /D "Create File List wSubs" /T REG_SZ /F)
    (REG Add "HKCR\AllFilesystemObjects\shell\printDir2\Command" /VE /D """"%batchfile2%""" """%%V"""" /F)
    reg query "HKCR\AllFilesystemObjects\shell"

    The following are the output at my end. printDir1 and printDir2 have been added.
    Code:
    Microsoft Windows [Version 10.0.18362.1016]
    (c) 2019 Microsoft Corporation. All rights reserved.
    
    C:\Windows\system32>(REG Add "HKCR\AllFilesystemObjects\shell\printDir1" /D "Create File List" /T REG_SZ /F)
    The operation completed successfully.
    
    C:\Windows\system32>(REG Add "HKCR\AllFilesystemObjects\shell\printDir1\Command" /VE /D """"%batchfile1%""" """%%V"""" /F)
    The operation completed successfully.
    
    C:\Windows\system32>(REG Add "HKCR\AllFilesystemObjects\shell\printDir2" /D "Create File List wSubs" /T REG_SZ /F)
    The operation completed successfully.
    
    C:\Windows\system32>(REG Add "HKCR\AllFilesystemObjects\shell\printDir2\Command" /VE /D """"%batchfile2%""" """%%V"""" /F)
    The operation completed successfully.
    
    C:\Windows\system32>reg query "HKCR\AllFilesystemObjects\shell"
    
    HKEY_CLASSES_ROOT\AllFilesystemObjects\shell\LaunchWorkfoldersControl
    HKEY_CLASSES_ROOT\AllFilesystemObjects\shell\printDir1
    HKEY_CLASSES_ROOT\AllFilesystemObjects\shell\printDir2
    
    C:\Windows\system32>
      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 02:05.
Find Us




Windows 10 Forums