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

Page 2 of 150 FirstFirst 12341252102 ... LastLast

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

    Batch files for use in BSOD debugging

    %temp%\DiskpParInfo.LOG

    p should be deleted.
      My Computer


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

    zbook said:
    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?
    Which size do you prefer. It's a BBCODE problem. All should have the same size= statement and apparently they don't. I can fix that. Just let me know which one you want. Also depends on where you copied it from.

    You should be using this line, that's what it's there for:

    Tuneup.bat - Click here to go to the BSOD batch repository to download and run this batch file.

    They are all the same size.
      My Computers


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

    Matthew Wai said:
    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>
    Problem with doing that is %batchfile1% and %batchfile2% are not defined so it will not be functional. If you run the complete bacth file as I said you'll see exactly what happens.

    When I run it, this is what I get:

    Code:
    C:\WINDOWS\system32>(Net session  1>nul 2>&1 )  && Goto:Admin || Echo CreateObject("Shell.Application"). ShellExecute "\\DESKTOP\Lenovo_E\sources\Windows 10\Batch Files\Tenf BatchFiles\AddGenFileList.bat","","","RunAs",1  1>"C:\Users\ztruk\AppData\Local\Temp\(+).vbs"  && "C:\Users\ztruk\AppData\Local\Temp\(+).vbs" & Exit
    
    C:\WINDOWS\system32>set batchfile1=C:\Users\ztruk\GenFileList1.bat
    
    C:\WINDOWS\system32>set batchfile2=C:\Users\ztruk\GenFileList2.bat
    
    C:\WINDOWS\system32>set filelist1=C:\Users\ztruk\AppData\Local\Temp\GenFileList1.txt
    
    C:\WINDOWS\system32>set filelist2=C:\Users\ztruk\AppData\Local\Temp\GenFileList2.txt
    
    C:\WINDOWS\system32>Echo Updating registry
    Updating registry
    
    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 """"C:\Users\ztruk\GenFileList1.bat""" """%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 """"C:\Users\ztruk\GenFileList2.bat""" """%V"""" /F )
    The operation completed successfully.
    
    C:\WINDOWS\system32>Echo Creating C:\Users\ztruk\GenFileList1.bat
    Creating C:\Users\ztruk\GenFileList1.bat
    
    C:\WINDOWS\system32>Echo @echo off & set filelist=C:\Users\ztruk\AppData\Local\Temp\GenFileList1.txt  1>C:\Users\ztruk\GenFileList1.bat
    
    C:\WINDOWS\system32>Echo dir %* /a /-p /o:gen>%filelist% & notepad %filelist% & del %filelist%  1>>C:\Users\ztruk\GenFileList1.bat
    
    C:\WINDOWS\system32>Echo.
    
    
    C:\WINDOWS\system32>Echo Creating C:\Users\ztruk\GenFileList2.bat
    Creating C:\Users\ztruk\GenFileList2.bat
    
    C:\WINDOWS\system32>Echo @echo off & set filelist=C:\Users\ztruk\AppData\Local\Temp\GenFileList2.txt  1>C:\Users\ztruk\GenFileList2.bat
    
    C:\WINDOWS\system32>Echo dir %* /a /-p /s /o:gen>%filelist% & notepad %filelist% & del %filelist%  1>>C:\Users\ztruk\GenFileList2.bat
    
    C:\WINDOWS\system32>Echo.
    
    
    C:\WINDOWS\system32>Echo.
    
    
    C:\WINDOWS\system32>Echo #############################################################################
    #############################################################################
    
    C:\WINDOWS\system32>Echo # To use, Open File Explorer, navigate to the folder above the one you want #
    # To use, Open File Explorer, navigate to the folder above the one you want #
    
    C:\WINDOWS\system32>Echo # to get a directory list of.                                               #
    # to get a directory list of.                                               #
    
    C:\WINDOWS\system32>Echo # Press the Shift key and Right click on the folder you want the directory  #
    # Press the Shift key and Right click on the folder you want the directory  #
    
    C:\WINDOWS\system32>Echo # list for and select Create File List. Notepad will open with the contents #
    # list for and select Create File List. Notepad will open with the contents #
    
    C:\WINDOWS\system32>Echo # of the directory.                                                         #
    # of the directory.                                                         #
    
    C:\WINDOWS\system32>Echo #                                                                           #
    #                                                                           #
    
    C:\WINDOWS\system32>Echo # The batch file used to gather the directory info is . You can  #
    # The batch file used to gather the directory info is . You can  #
    
    C:\WINDOWS\system32>Echo # change that however you want to control the directory output you see.     #
    # change that however you want to control the directory output you see.     #
    
    C:\WINDOWS\system32>Echo #############################################################################
    #############################################################################
    
    C:\WINDOWS\system32>Pause
    Press any key to continue . . .
      My Computers


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

    At this time clicking on: 2. DiskParInfo.bat
    opened tuneup.bat


    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




    opened:
    Batch files for use in BSOD debugging
      My Computer


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

    Fixed.
      My Computers


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

    This link is malfunctioning:

    Post the following in a thread to point users to this Batch script.

    Get_Powercfg_info.bat - Click here to go to the BSOD batch repository to download and run this batch file.




    Get_Powercfg_info.bat
    Use Powershell powercfg commands to extract Power plan information.


    This link is working:


    Part One
    Download the batch file

    Download the batch file to your Desktop or Downloads folder.

    Download Get_Powercfg_info.bat




    Clicking on the first Get_Powercfg_info.bat opened:
    Batch files for use in BSOD debugging

    Clicking on the second Get_Powercfg_info.bat launched the download/script
      My Computer


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

    The first link is intended to take users to the post. You are supposed to copy the link into a post in reply to a user, who will then follow the link to the "Get_Powercfg_info.bat" post.
      My Computer


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

    As Matthew said:

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


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

    zbook said:
    Run: SFCfromFile.bat - Click here to go to the BSOD batch repository to download and run this batch file.

    Run administrative command prompt:
    copy %windir%\logs\cbs\cbs.log "%userprofile%\Desktop\cbs.txt"
    Why not add the command into the batch script?
      My Computer


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

    Matthew Wai said:
    Why not add the command into the batch script?
    Which script?

    Did you want it on the desktop?
    Or automatically collected?
      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 14:32.
Find Us




Windows 10 Forums