diff --git a/.bin/Scripts/system_diagnostics.py b/.bin/Scripts/system_diagnostics.py index 4c0fe0a8..de5409b8 100644 --- a/.bin/Scripts/system_diagnostics.py +++ b/.bin/Scripts/system_diagnostics.py @@ -63,8 +63,12 @@ if __name__ == '__main__': function=run_chkdsk, other_results=other_results) try_and_print(message='SFC scan...', function=run_sfc_scan, other_results=other_results) - try_and_print(message='DISM CheckHealth...', - function=run_dism, other_results=other_results, repair=False) + if D7_MODE: + try_and_print(message='DISM RestoreHealth...', + function=run_dism, other_results=other_results, repair=True) + else: + try_and_print(message='DISM CheckHealth...', + function=run_dism, other_results=other_results, repair=False) if D7_MODE: @@ -131,3 +135,5 @@ if __name__ == '__main__': pass except: major_exception() + +# vim: sts=4 sw=4 ts=4