anchor.diff:  call :log "%CUR_DATE% %TIME%   stage_4_repair jobs begin..."
   
   
  -:: JOB: Check Windows Image for corruptions before running SFC (Windows 8/2012 only)
  +:: JOB: Check Windows Image for corruptions before running SFC (Windows 8 and up)
   :: Thanks to /u/nomaddave
   title TRON v%SCRIPT_VERSION% [stage_3_disinfect] [DISM Check]
  -call :log "%CUR_DATE% %TIME%    Launch job 'Dism Windows image check (Win8/2012 only)'..."
  +call :log "%CUR_DATE% %TIME%    Launch job 'Dism Windows image check (Win8 and up)'..."
   if /i %DRY_RUN%==yes goto skip_dism_image_check
   
  -:: Read WIN_VER and run the scan if we're on some derivative of 8 or 2012
  -if "%WIN_VER:~0,9%"=="Windows Server 2012" (
  +:: Read WIN_VER and run the scan if we're on 8 or above
  +if "%WIN_VER:~0,19%"=="Windows Server 2012" (
   	Dism /Online /NoRestart /Cleanup-Image /ScanHealth /Logpath:"%LOGPATH%\tron_dism.log"
   	type "%LOGPATH%\tron_dism.log" >> "%LOGPATH%\%LOGFILE%"
   	del /f /q "%LOGPATH%\tron_dism.log"
  
positive.code: 		schtasks /delete /F /TN "\Microsoft\Windows\Power Efficiency Diagnostics\AnalyzeSystem"
  		schtasks /delete /F /TN "\Microsoft\Windows\Windows Error Reporting\QueueReporting"
  
  		REM SERVICES
  		REM :::::::::::::::::::::::::::::::::::::::::::::
  		REM Diagnostic Tracking
  		::sc stop Diagtrack >nul 2>&1
  		::sc delete Diagtrack >nul 2>&1
  
  		REM MISC
  		REM :::::::::::::::::::::::::::::::::::::::::::::
  		REM Kill pending tracking reports
  		if not exist %ProgramData%\Microsoft\Diagnosis\ETLLogs\AutoLogger\ mkdir %ProgramData%\Microsoft\Diagnosis\ETLLogs\AutoLogger\
  		echo. > %ProgramData%\Microsoft\Diagnosis\ETLLogs\AutoLogger\AutoLogger-Diagtrack-Listener.etl 2>NUL
  		echo y|cacls.exe "%programdata%\Microsoft\Diagnosis\ETLLogs\AutoLogger\AutoLogger-Diagtrack-Listener.etl" /d SYSTEM 2>NUL
  	)
  )
  call :log "%CUR_DATE% %TIME%    Done."
  
  
  
negative.code: 		:: Add /LimitAccess flag to this command to prevent connecting to Windows Update for replacement files
  		Dism /Online /NoRestart /Cleanup-Image /RestoreHealth /Logpath:"%LOGPATH%\tron_dism.log"
  		type "%LOGPATH%\tron_dism.log" >> "%LOGPATH%\%LOGFILE%"
  		)
  	if "%WIN_VER:~0,9%"=="Windows 1" (
  		call :log "%CUR_DATE% %TIME% !  DISM: Image corruption detected. Attempting repair..."
  		:: Add /LimitAccess flag to this command to prevent connecting to Windows Update for replacement files
  		Dism /Online /NoRestart /Cleanup-Image /RestoreHealth /Logpath:"%LOGPATH%\tron_dism.log"
  		type "%LOGPATH%\tron_dism.log" >> "%LOGPATH%\%LOGFILE%"
  	) else (
  		call :log "%CUR_DATE% %TIME%    DISM: No image corruption detected."
  	)
  )
  
  :skip_dism_image_check
  call :log "%CUR_DATE% %TIME%    Done."
  
  
  
  :: JOB: Reset registry permissions
  