anchor.diff:  pushd dism_image_check
   if %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" Dism /Online /Cleanup-Image /ScanHealth
  -if "%WIN_VER:~0,9%"=="Windows 8" Dism /Online /Cleanup-Image /ScanHealth
  +if "%WIN_VER:~0,9%"=="Windows Server 2012" (
  +	Dism /Online /Cleanup-Image /ScanHealth /Logpath:"%LOGPATH%\tron_dism.log"
  +	type "%LOGPATH%\tron_dism.log" >> "%LOGPATH%\%LOGFILE%"
  +	)
  +if "%WIN_VER:~0,9%"=="Windows 8" (
  +	Dism /Online /Cleanup-Image /ScanHealth /Logpath:"%LOGPATH%\tron_dism.log"
  +	type "%LOGPATH%\tron_dism.log" >> "%LOGPATH%\%LOGFILE%"
  +	)
  +	
  +:: If we detect errors, try to repair them
   if not %ERRORLEVEL%==0 ( 
   	echo %CUR_DATE% %TIME% !  DISM: Image corruption detected. Attempting repair...>> "%LOGPATH%\%LOGFILE%"
   	echo %CUR_DATE% %TIME% !  DISM: Image corruption detected. Attempting repair...
  -	:: Add /LimitAccess flag to command below to prevent connecting to Windows Update for replacement files
  -	Dism /Online /Cleanup-Image /RestoreHealth
  -	type "%WinDir%\Logs\DISM\dism.log" >> "%LOGPATH%\%LOGFILE%"
  -	copy "%WinDir%\Logs\DISM\dism.log" "%LOGPATH%"
  +	:: Add /LimitAccess flag to this command to prevent connecting to Windows Update for replacement files
  +	Dism /Online /Cleanup-Image /RestoreHealth /Logpath:"%LOGPATH%\tron_dism.log"
  +	type "%LOGPATH%\tron_dism.log" >> "%LOGPATH%\%LOGFILE%"
   ) else (
   	echo %CUR_DATE% %TIME%    DISM: No image corruption detected.>> "%LOGPATH%\%LOGFILE%"
   	echo %CUR_DATE% %TIME%    DISM: No image corruption detected.
  
positive.code: :: Collect misc logs and deposit them in the log folder. Thanks to reddit.com/user/swtester
  echo %CUR_DATE% %TIME%    Collecting misc logs and dumping them in "%LOGPATH%"...>> "%LOGPATH%\%LOGFILE%"
  echo %CUR_DATE% %TIME%    Collecting misc logs and dumping them in "%LOGPATH%"
  if exist "%ProgramData%\Sophos\Sophos Virus Removal Tool\Logs" copy /Y"%ProgramData%\Sophos\Sophos Virus Removal Tool\Logs\*.l*" %SystemDrive%\Logs\ >NUL
  if exist "%ProgramData%\Malwarebytes\Malwarebytes Anti-Malware\Logs" copy /Y "%ProgramData%\Malwarebytes\Malwarebytes Anti-Malware\Logs\*.xml" %SystemDrive%\Logs\ >NUL
  echo %CUR_DATE% %TIME%    Done.>> "%LOGPATH%\%LOGFILE%"
  echo %CUR_DATE% %TIME%    Done.
  	
  title TRON v%SCRIPT_VERSION% (%SCRIPT_DATE%) [DONE]
  
  echo %CUR_DATE% %TIME%   DONE. Use the tools in resources\stage_6_manual_tools if further cleaning is required.>> "%LOGPATH%\%LOGFILE%"
  echo %CUR_DATE% %TIME%   DONE. Use the tools in resources\stage_6_manual_tools if further cleaning is required.
  
  :: Check if auto-reboot was requested
  if "%AUTO_REBOOT_DELAY%"=="0" (
  
negative.code: cls && echo. && echo  Loading...
  color 0f
  set SCRIPT_VERSION=3.5.0
  set SCRIPT_DATE=2014-10-02
  title TRON v%SCRIPT_VERSION% (%SCRIPT_DATE%)
  
  :: Get the date into ISO 8601 standard date format (yyyy-mm-dd) so we can use it 
  