Windows Thread, Cleanup Local saved user profiles in Technical; Having looked at some of our workstations stored user profiles I have noticed many have several dozen users mandatory profiles ...
9th December 2011, 10:15 AM #1
Cleanup Local saved user profiles
Having looked at some of our workstations stored user profiles I have noticed many have several dozen users mandatory profiles saved, shouldn't these be removed at users logoff or is there a purpose to this? Is there a quick way to clean this up or would peopel recommend using a logoff script?
9th December 2011, 11:58 AM #2
The googling I have done, apparently the GPO setting removes inactive profiles but virus scanners can change that inactive to active.
I am having the exact same issue, as a result we have to manually remove them but because we have been imaging our PCs with FOG we are going to look in to setting this up to clean profiles often.
Not tested a logoff script though, Windows 7 will do it quickly - if Access level permits?
Windows XP though could take a while, luckily enough here Windows 7 can remove profiles within a few minutes. If any one has added the Del Prof as a log off script and it works - even as a student and no additional settings required? do say. I might implement it
10th December 2011, 06:48 PM #3
Local copies of roaming profiles are supposed to be removed on logoff if you have the "Delete cached copies of roaming profiles" group policy set, however this does not always happen - this has always been a problem, with XP and probably earlier too, though I think it did get a bit better with Vista. I have noticed the problem get worse with our 64-bit machines.
I believe that the root cause is programs keeping files open in the profile after the user has logged off - the prevents the profile from being deleted. If this is the case, a log off script to delete the profile will not help, because the delete script will run into the same locked files. I would look into a startup script, because a restart ought to have unlocked the files.
I would be cautious about just deleting the files from the "users" folder, because, since Vista, if Windows still has the deleted profile in its list of profiles, the user with that profile will get an error and a temporary profile next time they log on. You can avoid this by deleting the profile from the list in system properties -> advanced. I am not sure what the equivalent way to script this would be: possibly you just need to delete the right registry key in "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList" as well as the files. If the profile that is hanging around in the users folder, is not in the list of profiles, then it is apparently safe just to delete the files in users.
10th December 2011, 06:58 PM #4
If you're using windows 7, I think profiles are only deleted if they are super mandatory
10th December 2011, 07:05 PM #5
I use delprof2 as a shutdown script.
Thanks to plexer from:
Jollity (10th December 2011)
10th December 2011, 09:20 PM #6
Am I right that you mean local copies of mandatory profiles are only deleted if they are super mandatory? Local copies of non-mandatory profiles are surely supposed to be deleted, and usually seem to be for us.
Originally Posted by steve
That looks like a very handy tool.
Originally Posted by plexer
10th December 2011, 10:21 PM #7
Yep, local cached mandatory profiles are not deleted. If the domain isn't available, the user can still login and use that profile.
A super-mandatory profile will be deleted on log-off. This prevents the user logging in if the domain isn't available.
Super-Mandatory User Profiles - Windows 7 Tutorial
13th December 2011, 01:55 PM #8
- Rep Power
Originally Posted by plexer
13th December 2011, 02:07 PM #9
add your users to the group 'Domain Guests' - members of this group don't leave any local profiles on machines.. It works..
13th December 2011, 02:53 PM #10
This is an interesting idea. Here is a Microsoft article discussing the issue. They confirm what you say, that profiles of guests should be deleted, but also say:
Originally Posted by carvjo
I would be nervous that marking our regular users as guests has other consequences. For a start, the MS article suggests to me that profiles of users in the Domain Guests group do not get uploaded back to the server to roam. Do you know if this is the case, or do you only use your trick with mandatory profiles?
Guest accounts are not meant for users who have data and need to log on and off domains often. By intent, guests are people who may need to log to on a domain for a specific reason and then log off, but they do not stay or use the system for an extended time.
If users log on to a domain frequently enough that they would want to customize a desktop and keep data on it, they are not guests; they should be considered users, and should no longer be part of the Guests group.
By nsuljic in forum Windows 7
Last Post: 13th August 2012, 06:58 PM
By martinb in forum How do you do....it?
Last Post: 16th March 2010, 11:13 AM
By GoldenWonder in forum Windows 7
Last Post: 11th March 2010, 05:07 PM
By Sirbendy in forum Windows
Last Post: 16th January 2006, 06:00 PM
By Teacher_Tom in forum Windows
Last Post: 2nd November 2005, 04:35 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)