The script is probably messy.
It creates a log that shows what profiles were deleted, then deletes all folders within C:\Documents and Settings\ except those you list. I don't know how you would define the "latest" profiles. Mine also deletes the Default User profile and downloads the new Default User profile.
echo off
echo. >> "C:\Profile Cleanup.log"
echo -------------------- %time%: SYSTEM STARTUP - PROFILE CLEANUP -------------------- >> "C:\Profile Cleanup.log"
echo Script running as %username%. >> "C:\Profile Cleanup.log"
pushd "C:\Documents and Settings"
for /d %%d in (*) do ( if "%%~fd" neq "%userprofile%" if "%%d" neq "All Users" if "%%d" neq "Administrator" if "%%d" neq "username1" if "%%d" neq "username2" rd /s /q "%%d" & echo Deleting directory "%%d" >> "C:\Profile Cleanup.log" )
rmdir "Default User" /s /q
mkdir "Default User"
attrib +H "Default User"
net use z:\\server\directory\folder\ password /USER:Domain\username
xcopy "Z:\Classroom User" "C:\Documents and Settings\Default User" /H /K /S /Q
net use z: /DELETE
popd
echo -------------------- %time%: PROFILE CLEANUP COMPLETE -------------------- >> "C:\Profile Cleanup.log"
echo. >> "C:\Profile Cleanup.log"