roland Posted August 21, 2007 Posted August 21, 2007 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
apeo Posted August 21, 2007 Posted August 21, 2007 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.
tech-man Posted August 21, 2007 Posted August 21, 2007 I use this script from http://www.wisesoft.co.uk http://www.wisesoft.co.uk/Scripts/display_script.aspx?id=14 on PC boot - works really well.
tosca925 Posted August 21, 2007 Posted August 21, 2007 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.
User3204 Posted August 21, 2007 Posted August 21, 2007 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.
binky Posted August 21, 2007 Posted August 21, 2007 I just use pGina as this has that option built in!
Oops_my_bad Posted August 21, 2007 Posted August 21, 2007 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.
iatkinson Posted August 22, 2007 Posted August 22, 2007 I use delprof in abatch file that runs on shutdown, though only on machines where the amount of profiles is becoming a problem.
Gatt Posted August 22, 2007 Posted August 22, 2007 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.
ChrisP Posted August 22, 2007 Posted August 22, 2007 !! remember that if delprof runs on a laptop your gonna wipe the local accounts !!
Gatt Posted August 23, 2007 Posted August 23, 2007 Is there not a way to stop DELPROF deleting certain profiles?
blackcat Posted September 20, 2007 Posted September 20, 2007 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 ?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now