+ Post New Thread
Results 1 to 8 of 8
Windows Thread, Deleting .dat files in Technical; I am sorry to bring this back up as I know there have been a few threads about it before ...
  1. #1
    tomgrindle's Avatar
    Join Date
    Oct 2010
    Location
    Gloucestershire
    Posts
    210
    Thank Post
    53
    Thanked 18 Times in 15 Posts
    Rep Power
    22

    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.

    Many Thanks

    Tom

  2. #2
    DT2
    DT2 is offline
    DT2's Avatar
    Join Date
    May 2011
    Location
    Lakeville, Carleton County, New Brunswick
    Posts
    695
    Thank Post
    140
    Thanked 197 Times in 138 Posts
    Rep Power
    75
    Of all the things, have you tried delprof?

    DT

  3. #3


    Join Date
    Feb 2007
    Location
    51.403651, -0.515458
    Posts
    9,811
    Thank Post
    262
    Thanked 2,969 Times in 2,183 Posts
    Rep Power
    847
    Try DelProf2. It's better than Microsoft's DelProf.

    e.g.

    Code:
    delprof2.exe /u /i /r

  4. #4

    Michael's Avatar
    Join Date
    Dec 2005
    Location
    Birmingham
    Posts
    9,345
    Thank Post
    242
    Thanked 1,602 Times in 1,278 Posts
    Rep Power
    346
    Typically profiles do not get deleted because they're corrupt, hence the 000, 001 you're getting. Try creating a new mandatory profile.

  5. #5
    tomgrindle's Avatar
    Join Date
    Oct 2010
    Location
    Gloucestershire
    Posts
    210
    Thank Post
    53
    Thanked 18 Times in 15 Posts
    Rep Power
    22
    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?

  6. #6

    Michael's Avatar
    Join Date
    Dec 2005
    Location
    Birmingham
    Posts
    9,345
    Thank Post
    242
    Thanked 1,602 Times in 1,278 Posts
    Rep Power
    346
    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).

  7. #7
    tomgrindle's Avatar
    Join Date
    Oct 2010
    Location
    Gloucestershire
    Posts
    210
    Thank Post
    53
    Thanked 18 Times in 15 Posts
    Rep Power
    22
    OK. I might try delprof then. What switches do you use, and do you use delprof or delprof 2?

  8. #8

    Michael's Avatar
    Join Date
    Dec 2005
    Location
    Birmingham
    Posts
    9,345
    Thank Post
    242
    Thanked 1,602 Times in 1,278 Posts
    Rep Power
    346
    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.



SHARE:
+ Post New Thread

Similar Threads

  1. Deleting files Via Script
    By glennda in forum How do you do....it?
    Replies: 6
    Last Post: 9th March 2010, 05:02 PM
  2. Deleting all files from users home dirrectorys
    By noah in forum Wireless Networks
    Replies: 14
    Last Post: 1st September 2009, 10:37 PM
  3. ntuser.dat,man files
    By TechSupp in forum Wireless Networks
    Replies: 1
    Last Post: 21st September 2007, 03:34 PM
  4. Replies: 2
    Last Post: 20th August 2007, 10:52 AM
  5. Error deleting files or folder message
    By speckytecky in forum How do you do....it?
    Replies: 1
    Last Post: 15th November 2006, 03:21 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •