anchor.diff:  :::::::::::::::::::::
   :: STAGE 4: Repair :: // Begin jobs
   :::::::::::::::::::::
  -call functions\log.bat "%CUR_DATE% %TIME%   stage_4_repair begin..."
  +call functions\log.bat "   stage_4_repair begin..."
   
   
   :: JOB: MSI installer cleanup
   title Tron v%TRON_VERSION% [stage_4_repair] [MSI installer cleanup]
  -call functions\log.bat "%CUR_DATE% %TIME%    Cleaning up orphaned MSI cache files..."
  +call functions\log.bat "    Cleaning up orphaned MSI cache files..."
   if /i %VERBOSE%==yes (
   	if /i %DRY_RUN%==no stage_4_repair\msi_cleanup\msizap.exe G!
   ) else (
   	if /i %DRY_RUN%==no stage_4_repair\msi_cleanup\msizap.exe G! >> "%LOGPATH%\%LOGFILE%" 2>&1
   )
  -call functions\log.bat "%CUR_DATE% %TIME%    Done."
  +call functions\log.bat "    Done."
   
   
   :: JOB: Check Windows Image for corruptions (Windows 8 and up)
   if %WIN_VER_NUM% geq 6.2 (
   	title Tron v%TRON_VERSION% [stage_4_repair] [DISM Check]
  -	call functions\log.bat "%CUR_DATE% %TIME%    Launch job 'DISM Windows image check'..."
  +	call functions\log.bat "    Launch job 'DISM Windows image check'..."
   	if /i %DRY_RUN%==yes goto skip_dism_image_check
   	Dism /Online /NoRestart /Cleanup-Image /ScanHealth /Logpath:"%RAW_LOGS%\dism_check.log"
   )
  
positive.code: 		%SystemRoot%\System32\findstr.exe /c:"[SR]" %SystemRoot%\logs\cbs\cbs.log>> "%LOGPATH%\%LOGFILE%" 2>NUL
  	)
  )
  call functions\log.bat "%CUR_DATE% %TIME%    Done."
  
  
  :: JOB: chkdsk the system drive
  title Tron v%TRON_VERSION% [stage_4_repair] [chkdsk]
  call functions\log.bat "%CUR_DATE% %TIME%    Launch job 'chkdsk'..."
  call functions\log.bat "%CUR_DATE% %TIME%    Checking %SystemDrive% for errors..."
  :: Run a read-only scan and look for errors. Schedule a scan at next reboot if errors found
  if /i %DRY_RUN%==no %SystemRoot%\System32\chkdsk.exe %SystemDrive%
  if /i not %ERRORLEVEL%==0 (
  	call functions\log.bat "%CUR_DATE% %TIME% !  Errors found on %SystemDrive%. Scheduling full chkdsk at next reboot."
  	if /i %DRY_RUN%==no fsutil dirty set %SystemDrive%
  ) else (
  	call functions\log.bat "%CUR_DATE% %TIME%    No errors found on %SystemDrive%. Skipping full chkdsk at next reboot."
  )
  call functions\log.bat "%CUR_DATE% %TIME%    Done."
  
  
  :: JOB: Remove Microsoft telemetry (user tracking)
  title Tron v%TRON_VERSION% [stage_4_repair] [disable MS telemetry]
  if /i %SKIP_TELEMETRY_REMOVAL%==yes (
  	call functions\log.bat "%CUR_DATE% %TIME% !  SKIP_TELEMETRY_REMOVAL (-str) set. Disabling instead of removing."
  	REM Only disable telemetry, don't completely purge it
  	if %VERBOSE%==yes (
  		REM GPO options to disable telemetry
  
negative.code: :: Requirements:  1. Administrator access
  ::                2. Safe mode is recommended but not required
  :: Author:        vocatus on reddit.com/r/TronScript ( vocatus.gate at gmail ) // PGP key: 0x07d1490f82a211a2
  :: Version:       1.2.3 * Update date/time logging functions to use new log_with_date.bat. Thanks to /u/DudeManFoo for suggestion
  ::                1.2.2 * script: Update script to support standalone execution
  ::                1.2.1 + Add job 'Disable NVIDIA telemetry.' Thanks /u/TootZoot
  ::                1.2.0 - Remove job "Reset Filesystem permissions" and associated files
  ::                      - Remove job "Reset Registry permissions" and associated files
  