From 4e022ed843036ef3a2d6e55e4bf2b876c99eba9b Mon Sep 17 00:00:00 2001 From: 2Shirt <2xShirt@gmail.com> Date: Sun, 19 Aug 2018 12:14:34 -0700 Subject: [PATCH] Run DISM RestoreHealth in D7_MODE --- .bin/Scripts/system_diagnostics.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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