From f20d8b5af3649625dfb2fb70bb588984a7b1adfd Mon Sep 17 00:00:00 2001 From: 2Shirt <2xShirt@gmail.com> Date: Tue, 8 Jan 2019 22:13:51 -0700 Subject: [PATCH] Enable BSoD mini dumps during system checklists * Fixes issue #33 --- .bin/Scripts/functions/setup.py | 7 +++++++ .bin/Scripts/system_checklist.py | 2 ++ .bin/Scripts/system_checklist_hw.py | 2 ++ 3 files changed, 11 insertions(+) diff --git a/.bin/Scripts/functions/setup.py b/.bin/Scripts/functions/setup.py index 908bd2db..2edfab41 100644 --- a/.bin/Scripts/functions/setup.py +++ b/.bin/Scripts/functions/setup.py @@ -232,6 +232,13 @@ def enable_regback(): """Enable RegBack.""" write_registry_settings(SETTINGS_REGBACK, all_users=True) + +def enable_mini_dumps(): + """Configure Windows to save mini dumps during BSoDs.""" + cmd = ['wmic', 'RECOVEROS', 'set', 'DebugInfoType', '=', '3'] + run_program(cmd) + + def enable_system_restore(): """Enable System Restore and set disk usage to 5%""" cmd = [ diff --git a/.bin/Scripts/system_checklist.py b/.bin/Scripts/system_checklist.py index 585a5e10..cbcde87e 100644 --- a/.bin/Scripts/system_checklist.py +++ b/.bin/Scripts/system_checklist.py @@ -48,6 +48,8 @@ if __name__ == '__main__': function=disable_windows_telemetry, cs='Done') try_and_print(message='Enabling RegBack...', function=enable_regback, cs='Done') + try_and_print(message='Enabling BSoD mini dumps...', + function=enable_mini_dumps, cs='Done') try_and_print(message='Enabling System Restore...', function=enable_system_restore, cs='Done') try_and_print(message='Create System Restore point...', diff --git a/.bin/Scripts/system_checklist_hw.py b/.bin/Scripts/system_checklist_hw.py index aa918796..fd08fe10 100644 --- a/.bin/Scripts/system_checklist_hw.py +++ b/.bin/Scripts/system_checklist_hw.py @@ -44,6 +44,8 @@ if __name__ == '__main__': if global_vars['OS']['Version'] == '10': try_and_print(message='Enabling RegBack...', function=enable_regback, cs='Done') + try_and_print(message='Enabling BSoD mini dumps...', + function=enable_mini_dumps, cs='Done') try_and_print(message='Enabling System Restore...', function=enable_system_restore, cs='Done') try_and_print(message='Create System Restore point...',