diff --git a/.bin/Scripts/system_diagnostics.py b/.bin/Scripts/system_diagnostics.py index aebadb07..442dbc5e 100644 --- a/.bin/Scripts/system_diagnostics.py +++ b/.bin/Scripts/system_diagnostics.py @@ -125,10 +125,11 @@ if __name__ == '__main__': result = try_and_print(message='SFC scan...', function=run_sfc_scan, other_results=other_results) system_ok &= check_result(result, other_results) - if D7_MODE and global_vars['OS']['Version'] in ('8', '8.1', '10'): + if D7_MODE: result = try_and_print(message='DISM RestoreHealth...', function=run_dism, other_results=other_results, repair=True) - system_ok &= check_result(result, other_results) + if global_vars['OS']['Version'] in ('8', '8.1', '10'): + system_ok &= check_result(result, other_results) else: try_and_print(message='DISM CheckHealth...', function=run_dism, other_results=other_results, repair=False)