Deleting .dat files
I am sorry to bring this back up as I know there have been a few threads about it before .... but we cannot find a solution.
We are using mandatory profiles for our students, and they get copied to 'C:\Documents and Settings\' on log on. On log off the profile is supposed to be deleted. This has been working fine previously until not long ago. Because they are not being deleted multiple copies of the profile are being created, such as username.domain and username.000 etc.
The files that are being left behind, therefore the profile not being totally deleted are:
C:\Documents and Settings\*Username*\Local Settings\History\History.IE5\index.dat
C:\Documents and Settings\*Username*\IETldCache\index.dat
C:\Documents and Settings\*Username*\Cookies\index.dat
We have GPO set to delete profiles on log off, we run the User Profile Hive Cleanup Service, we also have a script that runs ... and it just seems impossible for these profiles to be deleted properly.
We run Windows Server 2003 and Windows XP.
Any help is gratefully received.
Of all the things, have you tried delprof?
Try DelProf2. It's better than Microsoft's DelProf.
delprof2.exe /u /i /r
Typically profiles do not get deleted because they're corrupt, hence the 000, 001 you're getting. Try creating a new mandatory profile.
To be honest we haven't tried delprof yet.
@micheal : I can understand that bit .... but it the profile is only corrupt because of the index.dat files that are left over ... it deletes the rest of the profile fine. It is almost like there is something using the files when it is trying to be deleted. If we delete them manually we have to restart the machine before we can do it because it complains that the file is in use .... so i presume that is what our script etc will not be deleting them files. Bust what can be hijacking it?
I'm pretty sure that's normal behaviour that it remains in use, despite being logged off. This is why I have used delprof as a Startup script, so it should delete everything (depending on the delprof switches you use).
OK. I might try delprof then. What switches do you use, and do you use delprof or delprof 2?
Delprof works with Windows 2000 and Windows XP and Delprof2 works with Windows Vista and Windows 7.
If you copy the delprof.exe to the root of C:\ and then from a command prompt run C:\delprof.exe /? it'll give you a list of all the available switches. Alternatively you could probably just Google it too.
I've not had the need as yet to use Delprof2 in a Windows 7 environment, but I suspect the process is the same.