Enabled ERUNT registry backup in d7 diagnostics
This commit is contained in:
parent
877a9c6634
commit
8189d412eb
2 changed files with 6 additions and 4 deletions
|
|
@ -82,7 +82,7 @@ def backup_power_plans():
|
||||||
cmd = ['powercfg', '-export', out, guid]
|
cmd = ['powercfg', '-export', out, guid]
|
||||||
run_program(cmd, check=False)
|
run_program(cmd, check=False)
|
||||||
|
|
||||||
def backup_registry():
|
def backup_registry(overwrite=False):
|
||||||
"""Backup registry including user hives."""
|
"""Backup registry including user hives."""
|
||||||
extract_item('erunt', silent=True)
|
extract_item('erunt', silent=True)
|
||||||
cmd = [
|
cmd = [
|
||||||
|
|
@ -92,6 +92,8 @@ def backup_registry():
|
||||||
'curuser',
|
'curuser',
|
||||||
'otherusers',
|
'otherusers',
|
||||||
'/noprogresswindow']
|
'/noprogresswindow']
|
||||||
|
if overwrite:
|
||||||
|
cmd.append('/noconfirmdelete')
|
||||||
run_program(cmd)
|
run_program(cmd)
|
||||||
|
|
||||||
def get_folder_size(path):
|
def get_folder_size(path):
|
||||||
|
|
|
||||||
|
|
@ -162,9 +162,9 @@ if __name__ == '__main__':
|
||||||
function=backup_power_plans, cs='Done')
|
function=backup_power_plans, cs='Done')
|
||||||
try_and_print(message='Product Keys...',
|
try_and_print(message='Product Keys...',
|
||||||
function=run_produkey, cs='Done', other_results=other_results)
|
function=run_produkey, cs='Done', other_results=other_results)
|
||||||
if not D7_MODE:
|
|
||||||
try_and_print(message='Registry...',
|
try_and_print(message='Registry...',
|
||||||
function=backup_registry, cs='Done', other_results=other_results)
|
function=backup_registry, cs='Done', other_results=other_results,
|
||||||
|
overwrite=True)
|
||||||
|
|
||||||
# Summary
|
# Summary
|
||||||
if not D7_MODE:
|
if not D7_MODE:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue