anchor.diff:  :stage_6_wrap-up
   :: Stamp current stage so we can resume if we get interrupted by a reboot
   echo stage_6_wrap-up>tron_stage.txt
  -call :log_heading stage_6_wrap-up jobs begin...
  +all :log "%CUR_DATE% %TIME%   stage_6_wrap-up jobs begin..."
   
   :: JOB: If selected, import the original power settings, re-activate them, and delete the backup
   :: Otherwise, just reset power settings back to their defaults
   if "%PRESERVE_POWER_SCHEME%"=="yes" (
   	title TRON v%SCRIPT_VERSION% [stage_6_wrap-up] [Restore power scheme]
  -	call :log Restoring power settings to previous values...
  +	call :log "%CUR_DATE% %TIME%    Restoring power settings to previous values..."
   	REM Check for Windows XP/2k3
   	if /i "%WIN_VER:~0,9%"=="Microsoft" (
   		if /i %DRY_RUN%==no %WINDIR%\system32\powercfg.exe /import "%POWER_SCHEME%" /file "%BACKUPS%\tron_power_config_backup.pow"
  
positive.code: 	type "%ProgramData%\Sophos\Sophos Virus Removal Tool\Logs\SophosVirusRemovalTool.log" >> "%LOGPATH%\%LOGFILE%"
  	if exist "%ProgramData%\Sophos\Sophos Virus Removal Tool\Logs\SophosVirusRemovalTool.log" del /f /q "%ProgramData%\Sophos\Sophos Virus Removal Tool\Logs\SophosVirusRemovalTool.log" >nul 2>&1
  	)
  call :log Done.
  
  
  :: JOB: VIPRE Rescue
  title TRON v%SCRIPT_VERSION% [stage_3_disinfect] [VIPRE Rescue]
  :: We have to pushd and popd here because Vipre tries to stage its definition files in the current directory
  call :log Launch job 'Vipre rescue scanner' (slow, be patient)...
  pushd stage_3_disinfect\vipre_rescue
  call :log Scan in progress. Output hidden by default (use -v to show)...
  if /i %DRY_RUN%==no ( 
  	if /i %VERBOSE%==no VipreRescueScanner.exe /nolog >> "%LOGPATH%\%LOGFILE%"
  	if /i %VERBOSE%==yes VipreRescueScanner.exe
  	)
  popd
  call :log Done.
  
  :: AV scans finished
  call :log Done.
  :skip_antivirus_scans
  
  
  :: JOB: Check Windows Image for corruptions before running SFC (Windows 8/2012 only)
  :: Thanks to /u/nomaddave
  title TRON v%SCRIPT_VERSION% [stage_3_disinfect] [DISM Check]
  call :log Launch job 'Dism Windows image check (Win8/2012 only)'...
  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
  
negative.code: 
  :: JOB: Windows updates
  title TRON v%SCRIPT_VERSION% [stage_4_patch] [Windows Updates]
  call :log "%CUR_DATE% %TIME%    Launch job 'Install Windows updates'..."
  if /i %DRY_RUN%==no (
  	if /i %SKIP_WINDOWS_UPDATES%==no (
  		wuauclt /detectnow /updatenow
  		call :log "%CUR_DATE% %TIME%    Done."
  	) else (
  		call :log "%CUR_DATE% %TIME% !  SKIP_WINDOWS_UPDATES ^(-sw^) set to "%SKIP_WINDOWS_UPDATES%", skipping Windows Updates."
  	)
  )
  
  