anchor.diff:      :: Dump list of users to a file, then iterate through the list of profiles deleting the respective AU folder
       dir "%SystemDrive%\Documents and Settings\" /B > %TEMP%\userlist.txt
       for /f "tokens=* delims= " %%a in (%TEMP%\userlist.txt) do (
  -		if exist "%SystemDrive%\Documents and Settings\%%a\AppData\LocalLow\Sun\Java\AU" rmdir /S /Q "%SystemDrive%\Documents and Settings\%%a\AppData\LocalLow\Sun\Java\AU" 2>NUL
  +		if exist "%SystemDrive%\Documents and Settings\%%a\AppData\LocalLow\Sun\Java\AU" rmdir /S /Q "%SystemDrive%\Documents and Settings\%%a\AppData\LocalLow\Sun\Java\AU">> "%LOGPATH%\%LOGFILE%" 2>NUL
   	)
  -    for /D /R "%SystemDrive%\Documents and Settings\" %%b in (jre*) do if exist "%%x" rmdir /S /Q "%%b" 2>NUL
  +    for /D /R "%SystemDrive%\Documents and Settings\" %%b in (jre*) do if exist "%%x" rmdir /S /Q "%%b">> "%LOGPATH%\%LOGFILE%" 2>NUL
   ) else (
   	:: ALL OTHER VERSIONS OF WINDOWS
       :: Dump list of users to a file, then iterate through the list of profiles deleting the respective AU folder
       dir %SystemDrive%\Users /B > %TEMP%\userlist.txt
       for /f "tokens=* delims= " %%a in (%TEMP%\userlist.txt) do (
  -		if exist "%SystemDrive%\Users\%%a\AppData\LocalLow\Sun\Java\AU" rmdir /S /Q "%SystemDrive%\Users\%%a\AppData\LocalLow\Sun\Java\AU" 2>NUL
  +		if exist "%SystemDrive%\Users\%%a\AppData\LocalLow\Sun\Java\AU" rmdir /S /Q "%SystemDrive%\Users\%%a\AppData\LocalLow\Sun\Java\AU">> "%LOGPATH%\%LOGFILE%" 2>NUL
   		)
  -    :: Get the other JRE directories
  -    for /D /R "%SystemDrive%\Users" %%b in (jre*) do rmdir /S /Q "%%b" 2>NUL
  +    REM Get the other JRE directories
  +    for /D /R "%SystemDrive%\Users" %%b in (jre*) do rmdir /S /Q "%%b">> "%LOGPATH%\%LOGFILE%" 2>NUL
       )
   
   :: Miscellaneous stuff, sometimes left over by the installers
  
positive.code: :::::::::::::::::::::
  :: PREP AND CHECKS ::
  :::::::::::::::::::::
  @echo off
  set SCRIPT_VERSION=1.8.0
  set SCRIPT_UPDATED=2015-12-03
  :: Get the date into ISO 8601 standard format (yyyy-mm-dd) so we can use it
  FOR /f %%a in ('WMIC OS GET LocalDateTime ^| find "."') DO set DTS=%%a
  set CUR_DATE=%DTS:~0,4%-%DTS:~4,2%-%DTS:~6,2%
  
negative.code: :: Done.
  call :log "%CUR_DATE% %TIME%   Registry hive backups: %TEMP%\java_purge_registry_backup\"
  call :log "%CUR_DATE% %TIME%   Log file: "%LOGPATH%\%LOGFILE%""
  call :log "%CUR_DATE% %TIME%   COMPLETE. Recommend rebooting and washing your hands."
  
  :: Return exit code to SCCM/PDQ Deploy/PSexec/etc
  exit /B %EXIT_CODE%
  