Add BSoD minidump sections
This commit is contained in:
parent
cb3ec42b92
commit
7009a074c7
2 changed files with 13 additions and 1 deletions
|
|
@ -125,7 +125,7 @@ BASE_MENUS = {
|
||||||
MenuEntry('Open Shell', 'auto_config_open_shell'),
|
MenuEntry('Open Shell', 'auto_config_open_shell'),
|
||||||
MenuEntry('uBlock Origin', 'auto_enable_ublock_origin'),
|
MenuEntry('uBlock Origin', 'auto_enable_ublock_origin'),
|
||||||
#MenuEntry('Disable Fast Startup', no_op),
|
#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 Hibernation', no_op),
|
||||||
MenuEntry('Enable RegBack', 'auto_enable_regback'),
|
MenuEntry('Enable RegBack', 'auto_enable_regback'),
|
||||||
MenuEntry('Enable System Restore', 'auto_system_restore_enable'),
|
MenuEntry('Enable System Restore', 'auto_system_restore_enable'),
|
||||||
|
|
|
||||||
|
|
@ -370,6 +370,12 @@ def auto_set_custom_power_plan():
|
||||||
TRY_PRINT.run('Set Custom Power Plan...', create_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():
|
def auto_enable_regback():
|
||||||
"""Enable RegBack."""
|
"""Enable RegBack."""
|
||||||
TRY_PRINT.run(
|
TRY_PRINT.run(
|
||||||
|
|
@ -500,6 +506,12 @@ def disable_chrome_notifications():
|
||||||
pref_file.write_text(json.dumps(pref_data, separators=(',', ':')))
|
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():
|
def enable_ublock_origin():
|
||||||
"""Enable uBlock Origin in supported browsers."""
|
"""Enable uBlock Origin in supported browsers."""
|
||||||
base_paths = [
|
base_paths = [
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue