anchor.diff:      pushd "%CD%"
       CD /D "%~dp0"
   :--------------------------------------
  +    
  +    SETLOCAL EnableDelayedExpansion
       color 1f
       mode 100,35
   	title TechTutor's Clean Up Script - Prep Stage
  - 
  -    SETLOCAL EnableDelayedExpansion
   	
   	cls
   	
  
positive.code:         )
      )
  
      rem NOTE: Might want to run a command to copy current value...
      echo Turning off UAC temporarily...
      echo Command running: REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 0 /f
      REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 0 /f
      echo,
  	
  	:clientname
  	color 6f
  	echo,
  	set input=
  	set /p firstname="Client's first name: "
  	set /p lastname="Client's Last name: "
  	echo,
  	:clientnameconfirm
  	set /p input=You entered: %firstname% %lastname%. Is this correct? (y/n) %=%
  	if /i %input%==y goto :clientnamegood
  	if /i %input%==n goto :clientname
  	echo Incorrect input. & goto :clientnameconfirm
  	
  	:clientnamegood
  	
  	:avira
  	echo,
  	set av=
  	set /p av="Does the client need Avira installed? (y/n): "
  
  	:aviraconfirm
  	if /i %av%==y goto :netmap
  	if /i %av%==n goto :netmap
  	echo Incorrect input. & goto :avira
  
  	:netmap
  	color 1f
  	echo Mapping Beast Documents folder to drive letter %netletter%
  	echo,
  
      echo Command running: net use %netletter% \\BEAST\Documents /user:techtutors *
  	net use %netletter% \\BEAST\Documents /p:no /user:techtutors * 
  	echo,
  
  	echo Network drive mapped to %netletter%
  	echo Creating clean up subdirectories for %firstname% %lastname% on the BEAST...
  	echo,
  	
  	echo Command running: mkdir "%netletter%\Clean Up Logs\%lastname%-%firstname%-%FormattedDate%"
  	mkdir "%netletter%\Clean Up Logs\%lastname%-%firstname%-%FormattedDate%"
  	echo,
  	
  	echo Dumping preclean system info...
  	echo Command running: msinfo32 /nfo "%netletter%\Sysinfo Dumps\%lastname%-%firstname%-preclean-%FormattedDate%.nfo"
  	msinfo32 /nfo "%netletter%\Sysinfo Dumps\%lastname%-%firstname%-preclean-%FormattedDate%.nfo"
  	echo,
  	
  	echo Copying automation files to %workingdir%
  	echo,
  	echo Command running: robocopy /s "%netletter%\Automation\Clean Up" %workingdir%
  	robocopy /s "%netletter%\Automation\Clean Up" %workingdir%
  
  	echo Importing perfmon xml...
  	echo logman import -n TT-CleanUp -xml CleanUp-Test.xml
  	echo,
  	logman import -n TT-CleanUp -xml CleanUp-Test.xml
  
      echo Starting Performance Monitor. Please wait...
  	echo,
  	
  	echo Command running: logman start TT-CleanUp
  	logman start TT-CleanUp
  
  	echo Waiting for perfmon to finish...
      echo timeout 120
  	timeout 120
  	color 6f & pause & color 1f
  
  	echo Adding next stage to Startup...
  	echo Command running: echo %workingdir%\autoclean-startclean.bat %lastname% %firstname% %FormattedDate% %ninite%>"C:%HOMEPATH%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\autoclean-startcleantemp.bat"
  	echo %workingdir%\autoclean-startclean.bat %lastname% %firstname% %FormattedDate% %av%>"C:%HOMEPATH%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\autoclean-startcleantemp.bat"
  
  	rem Removing autoclean-start flag file
  	echo Command running: del autoclean-prep
  	echo,
  	del autoclean-prep
  	rem NOTE: Need to check how to automatically log the number that gets presented in the BootTimer dialogue. (Does it output to STDERR?)
  
  	echo Starting BootTimer. Prepare for reboot...
  	echo Command running: %workingdir%/boottimer.exe
  	echo,
  	%workingdir%/boottimer.exe
negative.code: 	echo %horiz_line%
  	echo,
  	
  	:drivelettertest
  	for %%d in (a b c d e f g h i j k l m n o p q r s t u v) do (if not exist %%d: echo Beast documents folder will be mapped to: %%d: & set "netletter=%%d:" & echo, & goto :netletter)
  	
  