Add BSoD minidump sections

This commit is contained in:
2Shirt 2021-09-27 19:30:12 -06:00
parent cb3ec42b92
commit 7009a074c7
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C
2 changed files with 13 additions and 1 deletions

View file

@ -125,7 +125,7 @@ BASE_MENUS = {
MenuEntry('Open Shell', 'auto_config_open_shell'),
MenuEntry('uBlock Origin', 'auto_enable_ublock_origin'),
#MenuEntry('Disable Fast Startup', no_op),
MenuEntry('Enable BSoD MiniDumps', no_op),
MenuEntry('Enable BSoD MiniDumps', 'auto_enable_bsod_minidumps'),
#MenuEntry('Enable Hibernation', no_op),
MenuEntry('Enable RegBack', 'auto_enable_regback'),
MenuEntry('Enable System Restore', 'auto_system_restore_enable'),

View file

@ -370,6 +370,12 @@ def auto_set_custom_power_plan():
TRY_PRINT.run('Set Custom Power Plan...', create_custom_power_plan)
def auto_enable_bsod_minidumps():
"""Enable saving minidumps during BSoDs."""
cmd = ['wmic', 'RECOVEROS', 'set', 'DebugInfoType', '=', '3']
TRY_PRINT.run('Enable BSoD mini dumps...', enable_bsod_minidumps)
def auto_enable_regback():
"""Enable RegBack."""
TRY_PRINT.run(
@ -500,6 +506,12 @@ def disable_chrome_notifications():
pref_file.write_text(json.dumps(pref_data, separators=(',', ':')))
def enable_bsod_minidumps():
"""Enable saving minidumps during BSoDs."""
cmd = ['wmic', 'RECOVEROS', 'set', 'DebugInfoType', '=', '3']
run_program(cmd)
def enable_ublock_origin():
"""Enable uBlock Origin in supported browsers."""
base_paths = [