Delete user’s profiles

Home Forums Scripting General Scripting Delete user’s profiles

Viewing 1 post (of 1 total)
  • Author
  • Avatar

    I work at a university, where we have 600+ users, 60 Windows XP Pro and a Windows Server 2003.
    The thing is that any user logs onto any computer at any time, so after a few days I have several (up to 100) user profiles under c:documents and settings(username).
    Sometimes they store huge amounts of data, and I end up with filled HDs, even though all the computers have 80 GB drives.
    All the user names are 5 and 6 digit numbers. For example, I get c:documents and settings123456.

    Is there any way to automate the deletion of those profiles instead of doing it manually?
    I thought of running a .bat file that has something like:

    deltree c:documents and settings1*
    deltree c:documents and settings2*
    deltree c:documents and settings3*
    …and so on up to number 9.

    But I have to run that on every computer “manually”, and files would be deleted instead of going to the recycle bin, which would be a plus.

    Any ideas?

    I haven’t tried the .bat idea… but I guess it should work.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.