diff --git a/.bin/Scripts/functions/info.py b/.bin/Scripts/functions/info.py index e306d767..ccf78bfe 100644 --- a/.bin/Scripts/functions/info.py +++ b/.bin/Scripts/functions/info.py @@ -82,7 +82,7 @@ def backup_power_plans(): cmd = ['powercfg', '-export', out, guid] run_program(cmd, check=False) -def backup_registry(): +def backup_registry(overwrite=False): """Backup registry including user hives.""" extract_item('erunt', silent=True) cmd = [ @@ -92,6 +92,8 @@ def backup_registry(): 'curuser', 'otherusers', '/noprogresswindow'] + if overwrite: + cmd.append('/noconfirmdelete') run_program(cmd) def get_folder_size(path): diff --git a/.bin/Scripts/system_diagnostics.py b/.bin/Scripts/system_diagnostics.py index 85edab97..18a3677f 100644 --- a/.bin/Scripts/system_diagnostics.py +++ b/.bin/Scripts/system_diagnostics.py @@ -162,9 +162,9 @@ if __name__ == '__main__': function=backup_power_plans, cs='Done') try_and_print(message='Product Keys...', function=run_produkey, cs='Done', other_results=other_results) - if not D7_MODE: - try_and_print(message='Registry...', - function=backup_registry, cs='Done', other_results=other_results) + try_and_print(message='Registry...', + function=backup_registry, cs='Done', other_results=other_results, + overwrite=True) # Summary if not D7_MODE: