anchor.diff:  :::::::::::::::::::::
   :: PREP AND CHECKS ::
   :::::::::::::::::::::
  -set STAGE_4_SCRIPT_VERSION=1.0.9
  -set STAGE_4_SCRIPT_DATE=2016-09-12
  +set STAGE_4_SCRIPT_VERSION=1.1.0
  +set STAGE_4_SCRIPT_DATE=2016-09-26
   
   :: Quick check to see if we inherited the appropriate variables from Tron.bat
   if /i "%LOGFILE%"=="" (
  
positive.code: :: Add the DISM logs to the main Tron log
  if %WIN_VER_NUM% gtr 6.2 (
  	call functions\log.bat "%CUR_DATE% %TIME%    Compiling DISM logs into main Tron log..."
  	if exist "%RAW_LOGS%\dism_check.log" type "%RAW_LOGS%\dism_check.log" >> "%LOGPATH%\%LOGFILE%" 2>nul
  	if exist "%RAW_LOGS%\dism_repair.log" type "%RAW_LOGS%\dism_repair.log" >> "%LOGPATH%\%LOGFILE%" 2>nul
  )
  
  :skip_dism_image_check
  
negative.code: if /i "%RUN_7_OR_8_TELEM%"=="yes" (
  	call functions\log.bat "%CUR_DATE% %TIME%    Launch job 'Disable Windows 10 Upgrade nagger (Win7/8/8.1)'..."
  	if /i %DRY_RUN%==no ( 
  		REM Only disable telemetry, don't completely purge it
  		REM "DisableOSUpgrade" disables/hides the taskbar app to prevent users from making a reservation and upgrading manually
  		REM  However, user can still get updated automatically with KB3146449
  		%windir%\system32\reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v "DisableOSUpgrade" /t REG_DWORD /d "1" /f
  	
  		REM "AllowOSUpgrade" is the holy grail that will actually prevent the upgrade from happening, even if Win10 is sitting in the update folder. 
  		REM You can make a reservation, download it via updates, enable this option and windows will never automatically/manually update to Win10.
  		REM "ReservationsAllowed" is a little more heavy handed and may not be neccessary. This actually prevents the user (or windows) from making a
  		REM reservation and downloading the upgrade even remotely possible...but the upgrade can still happen if it's already downloaded. Usually done 
  		REM on new installs as an extra preventative measure. The default value for this is 2. Setting it to 0 makes reservations impossible.
  		%windir%\system32\reg.exe add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\OSUpgrade" /v "AllowOSUpgrade" /t REG_DWORD /d "0" /f
  		%windir%\system32\reg.exe add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\OSUpgrade" /v "ReservationsAllowed" /t REG_DWORD /d "0" /f
  	
  		REM "DisableGWX" is the upgrade nagger/popup
  		%windir%\system32\reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows\GWX" /v "DisableGWX" /t REG_DWORD /d "1" /f
  	)
  	call functions\log.bat "%CUR_DATE% %TIME%    Done."
  )
  