Hi, I would like to delete user profiles when they logoff XP Pro, I need to do this because the desktop are re-appearing after deletion.
for instance
I remove the student profile from the server,
Student logins to a computer where which they have used before and
surprise surprise everything comes back to the desktop.
I'm sure (read guessing) this is a AD setting?
best Roland
Yes theres an AD policy to deal with this:
Computer Config>Admin Template>User Profiles>Delete Cached copies of roaming profiles
This will delete the profile from the local machine when it logs off after it updates the roaming profile. However I've found that it often leaves the local profile behind on laptops that run on wireless so will need something like delprof to get rid.
I use this script from www.wisesoft.co.uk http://www.wisesoft.co.uk/Scripts/di...ipt.aspx?id=14 on PC boot - works really well.
I use the AD setting in GPO but is works fine if the machine logs off correctly. If the kid just shuts it down by the power button or there is apower fialure for some reason then the pofile gets left.
I too use a script that runs on log off that deletes all the local user profiles except, administrator, default and one other ( which escapes me) This is fine on curriculum machines but don't run it on a OU that has staff laptops in becasue this could cause major problems with how you have your staff laptops set.
PM me if you want a copy of the script.
I don't have roaming profiles, so the profiles are all quite small anyway.
I _do_ end up with 1,000s of profiles on each machine eventually.
What we do is, regularly is run delprof, either, on the machine, or remotely.
Usually for each classroom we run delprof from a .BAT file, that starts at PC1 and goes until it gets to the last one. We do this in the holidays usually, but we have run this during lesson time, no-one seems to notice it.
I just use pGina as this has that option built in!
We go about it in 2 ways:
Deploy the user profile hive cleanup service MSI (on microsofts website somewhere) you need this to "unlock" their profile on logoff so it can be deleted at next startup.
Use a computer startup script via a GPO (but not linked to staff OU's) that runs delprof silently. Seems to work OK and only adds a few seconds to the startup time of a PC.
I use delprof in abatch file that runs on shutdown, though only on machines where the amount of profiles is becoming a problem.

Using Delprof too as a Startup Script (easiest way)
The "Cached Profile" setting in GPO is for Roaming profiles only - if you dont use Roaming Profiles it has no effect.
!! remember that if delprof runs on a laptop your gonna wipe the local accounts !!

Is there not a way to stop DELPROF deleting certain profiles?
We run delprof when the user logs on to the laptop locally. This deletes all the other profiles, but not the local one they are logged on with
Are network printers stored under the network profile, because when we delete the network login profiles, staff lose their network printers and have to add them again ?
There are currently 1 users browsing this thread. (0 members and 1 guests)