anchor.diff:  	:: Get list of all files on system
   	stage_0_prep\log_tools\everything\everything.exe -create-filelist "%RAW_LOGS%\filelist-before.txt" %SystemDrive%
   )
  -call functions\log.bat "    Done."
  +call functions\log_with_date.bat "    Done."
   
   
   :: JOB: Do a GUID dump before kicking everything off to make it easier for users to submit them if they forgot to do it before running Tron
   title Tron v%TRON_VERSION% [stage_0_prep] [GUID dump]
  -call functions\log.bat "    Dumping GUID list to "%RAW_LOGS%"..."
  +call functions\log_with_date.bat "    Dumping GUID list to "%RAW_LOGS%"..."
   if /i %DRY_RUN%==no %WMIC% product get identifyingnumber,name,version /all > "%RAW_LOGS%\GUID_dump_%COMPUTERNAME%_%CUR_DATE%.txt" 2>NUL
  -call functions\log.bat "    Done."
  +call functions\log_with_date.bat "    Done."
   
   
   :: JOB: Disable system sleep and screen saver
   if /i %DRY_RUN%==no (
  -	call functions\log.bat "    Launch job 'Temporarily disable system sleep and screensaver'..."
  +	call functions\log_with_date.bat "    Launch job 'Temporarily disable system sleep and screensaver'..."
   	title Tron v%TRON_VERSION% [stage_0_prep] [DisableSleepandScreensaver]
   	:: Kill off any running Caffeine instances first (can happen if resuming from an interrupted run)
   	taskkill /im "caffeine.exe" >nul 2>&1
   	start "" stage_0_prep\caffeine\caffeine.exe -noicon
  -	call functions\log.bat "    Done."
  +	call functions\log_with_date.bat "    Done."
   )
   
   
   :: JOB: ProcessKiller
   title Tron v%TRON_VERSION% [stage_0_prep] [ProcessKiller]
  -call functions\log.bat "    Launch Job 'ProcessKiller'..."
  +call functions\log_with_date.bat "    Launch Job 'ProcessKiller'..."
   pushd stage_0_prep\processkiller
   if /i %DRY_RUN%==no start "" /wait ProcessKiller.exe /silent
   popd
  -call functions\log.bat "    Done."
  +call functions\log_with_date.bat "    Done."
   
   
   :: JOB: Set system clock via NTP
   title Tron v%TRON_VERSION% [stage_0_prep] [SetSystemClock]
  -call functions\log.bat "    Launch Job 'Set system clock via NTP'..."
  +call functions\log_with_date.bat "    Launch Job 'Set system clock via NTP'..."
   if /i %DRY_RUN%==no (
   	:: Make sure time service is started, also force us to allow starting it in Safe Mode
   	if %SAFE_MODE%==yes reg add "HKLM\SYSTEM\CurrentControlSet\Control\SafeBoot\%SAFEBOOT_OPTION%\w32time" /ve /t reg_sz /d Service /f >> "%LOGPATH%\%LOGFILE%" 2>&1
  
positive.code:   
  	REM Create the restore point
  	echo "%WIN_VER%" | findstr /i /c:"server" >NUL || (
  		call functions\log.bat "    Creating pre-run Restore Point..."
  		if /i %DRY_RUN%==no powershell "Checkpoint-Computer -Description 'TRON v%TRON_VERSION%: Pre-run checkpoint' | Out-Null" >> "%LOGPATH%\%LOGFILE%" 2>&1
  	)
  call functions\log.bat "    OK."
  )
  :skip_restore_point_creation
  
  
  :: JOB: Capture screenshot of the desktop. First hide all windows, then capture the screenshot, then restore all windows
  title Tron v%TRON_VERSION% [stage_0_prep] [screenshot]
  call functions\log.bat "    Saving screenshot of the desktop to "%RAW_LOGS%"..."
  if /i %DRY_RUN%==no (
  	stage_0_prep\capture_screenshot\nircmdc.exe sendkeypress rwin+m
  	stage_0_prep\capture_screenshot\nircmdc.exe cmdwait 500 savescreenshotfull "%RAW_LOGS%\tron_%COMPUTERNAME%_pre-run_screenshot_%DTS:~0,12%.png"
  	stage_0_prep\capture_screenshot\nircmdc.exe sendkeypress rwin+shift+m
  )
  call functions\log.bat "    Done."
  
  
  :: JOB: rkill
  title Tron v%TRON_VERSION% [stage_0_prep] [rkill]
  call functions\log.bat "    Launch job 'rkill'..."
  call functions\log.bat "    If script stalls 20 min or more, kill explorer64.exe and explorer.exe with Task Manager"
  if /i %DRY_RUN%==no (
  	stage_0_prep\rkill\explorer.exe -s -l "%TEMP%\tron_rkill.log" -w "stage_0_prep\rkill\rkill_process_whitelist.txt"
  	type "%TEMP%\tron_rkill.log" >> "%LOGPATH%\%LOGFILE%" 2>NUL
  	del "%TEMP%\tron_rkill.log" 2>NUL
  	if exist "%HOMEDRIVE%\%HOMEPATH%\Desktop\Rkill.txt" del "%HOMEDRIVE%\%HOMEPATH%\Desktop\Rkill.txt" 2>NUL
  )
  call functions\log.bat "    Done."
  
  
  :: JOB: Get pre-run system state (installed programs, complete file list)
  title Tron v%TRON_VERSION% [stage_0_prep] [Analyze System State]
  call functions\log.bat "    Generating pre-run system profile..."
  if /i %DRY_RUN%==no (
  	:: Get list of installed programs
  	if %PROCESSOR_ARCHITECTURE%==x86 start stage_0_prep\log_tools\siv\siv32x.exe -save=[software]="%RAW_LOGS%\installed-programs-before.txt"
  
negative.code: title Tron v%TRON_VERSION% [stage_0_prep] [Create Restore Point]
  if /i "%WIN_VER:~0,9%"=="Windows 1" (
  	if  %SAFE_MODE%==yes (
  		call functions\log_with_date.bat " !  WARNING: Windows 10 blocks creating SysRestore points in Safe Mode. Why? Because Microsoft."
  		call functions\log_with_date.bat "    Skipping restore point creation. Reboot to Normal mode and re-run Tron if you absolutely require one."
  		goto :skip_restore_point_creation
  	)
  )
  