pastebin - collaborative debugging tool
nrubsig.kpaste.net RSS


Script to configure Windows "LocalDumps"
Posted by Anonymous on Thu 1st Feb 2024 12:06
raw | new post
view followups (newest first): Script to configure Windows "LocalDumps" by Anonymous
modification of post by Anonymous (view diff)

  1. set -o nounset
  2.  
  3. # dumps will go to /cygdrive/c/Users/$(logname)/AppData/CrashDumps
  4. mkdir -v -p "$(cygpath -u "$LOCALAPPDATA")/CrashDumps"
  5.  
  6. regtool add '/HKEY_LOCAL_MACHINE/Software/Microsoft/Windows/Windows Error Reporting/LocalDumps'
  7. regtool add '/HKEY_LOCAL_MACHINE/Software/Microsoft/Windows/Windows Error Reporting/LocalDumps/bash.exe'
  8. regtool -i set '/HKEY_LOCAL_MACHINE/Software/Microsoft/Windows/Windows Error Reporting/LocalDumps/bash.exe/DumpType' 2
  9. regtool add '/HKEY_LOCAL_MACHINE/Software/Microsoft/Windows/Windows Error Reporting/LocalDumps/ksh93.exe'
  10. regtool -i set '/HKEY_LOCAL_MACHINE/Software/Microsoft/Windows/Windows Error Reporting/LocalDumps/ksh93.exe/DumpType' 2
  11. regtool add '/HKEY_LOCAL_MACHINE/Software/Microsoft/Windows/Windows Error Reporting/LocalDumps/nfsd.exe'
  12. regtool -i set '/HKEY_LOCAL_MACHINE/Software/Microsoft/Windows/Windows Error Reporting/LocalDumps/nfsd.exe/DumpType' 2
  13. regtool add '/HKEY_LOCAL_MACHINE/Software/Microsoft/Windows/Windows Error Reporting/LocalDumps/nfsd_debug.exe'
  14. regtool -i set '/HKEY_LOCAL_MACHINE/Software/Microsoft/Windows/Windows Error Reporting/LocalDumps/nfsd_debug.exe/DumpType' 2
  15. regtool add '/HKEY_LOCAL_MACHINE/Software/Microsoft/Windows/Windows Error Reporting/LocalDumps/a.exe'
  16. regtool -i set '/HKEY_LOCAL_MACHINE/Software/Microsoft/Windows/Windows Error Reporting/LocalDumps/a.exe/DumpType' 2

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}




All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at