This works for me with XP
I use this script as a startup script which I just added into a blank GPO. It deletes all cached profiles on machines leaving out the ones that I need to keep. It ignores any hidden profiles such as 'Default User' by default anyway :)
cd "c:\Documents and Settings\"
dir *.* /b /o:d > \dirs.txt
for /f "tokens=*" %%a in (\dirs.txt) do call :DelFiles "%%a"
if %1=="All Users" set Flag=1
if %1=="Administrator" set Flag=1
if "%Flag%"=="0" (
attrib *.* -r /s
rem change rd %1 /s /q
rem for no confirmation
rd %1 /s /q
If there are a lot of cached profiles then the first run of this may take 5 - 6 minutes. second runs though are almost instant.
Two Groups. Teachers and students.
Would this setup work for this scenario?
Originally Posted by ajbritton
I have teachers on roaming profiles I do want them to be able to keep their profile but I want to delete profiles older than 6 months (to start).
I have Students who only use lab computers and have roaming profiles, I do not want their profiles to be saved on the local pc.
We have a AD Domain and I would like to use GPO's as much as possible. Can the UPHCLEAN.msi and the delprof be pushed out and work as I have previously stated I needed? I have not used delprof or upclean before so I am a little leary about using them