I am working on a network where there are a lot of users that log on to

the system for short periods, i.e. 2 weeks. They surf the net and
download a lot of files. The hard drive fills up fast and degrades
system performance.


I would like some way of removing locally stored user profiles using a
script. My thought is to roll through each profile on a computer and
check the name against user manager. If it is not listed then delete
the profile. The two concerns I have with this are: 1. It seems that

this is a very inefficient way of accomplishing what I want. and 2.
Sometimes when deleting profiles I have to boot in safe mode because it

says that certain files are in use.


Any suggestions would be greatly appreciated.


Trevor

Re: User Profiles by Marty

Marty
Tue Jan 03 11:07:35 CST 2006


"Dumb Luck" <trevor.christiansen@gmail.com> wrote in message
news:1136305400.037013.231980@g44g2000cwa.googlegroups.com...
>I am working on a network where there are a lot of users that log on to
>
> the system for short periods, i.e. 2 weeks. They surf the net and
> download a lot of files. The hard drive fills up fast and degrades
> system performance.
>
>
> I would like some way of removing locally stored user profiles using a
> script. My thought is to roll through each profile on a computer and
> check the name against user manager. If it is not listed then delete
> the profile. The two concerns I have with this are: 1. It seems that
>
> this is a very inefficient way of accomplishing what I want. and 2.
> Sometimes when deleting profiles I have to boot in safe mode because it
>
> says that certain files are in use.
>
>
> Any suggestions would be greatly appreciated.
>
>
> Trevor


If deleting the old profiles by date will work for you, then try DELPROF.EXE
from Microsoft:
http://www.google.com/search?q=delprof+site%3Amicrosoft%2Ecom

Sometimes programs don't release handles or file locks when users log out, so a
reboot would clear up any of that. If you are seeing files in user right after
a reboot, then you may be deleting one of the operating system profiles used by
services etc.




Re: User Profiles by Dumb

Dumb
Tue Jan 03 13:09:03 CST 2006

Thanks Marty, I think the delprof will work just fine!