Are Mandatory User Profiles Deleted at Logoff – or Cached? |
Tuesday, 26 January 2010 by Michel Roth | |||
Mandatory profiles are similar to roaming profiles in that a master copy lives on a file server that gets copied down to the local machine at logon. Thus a locally cached version of the mandatory profile is created that is used and changed during the user session. This local copy of the mandatory profile is created once for each user, just as with a roaming profile. And at logoff, it stays where it is, unchanged. Windows does not delete mandatory profiles at logoff. (There was a bug in Windows XP that caused mandatory profiles to be deleted. It has been fixed in service pack 3.) But wait, are mandatory profiles not reset at each logon? Yes they are. But that does not happen through deletion of the locally cached version during logoff, but by replacing the local copy with the network copy during logon. In other words, everything the user changed during his or her last session is lost – that is what mandatory profiles are all about. So what is that local cache used for, if it is reset at logon? It has one use only: allow logons when the network is not available. Only in that case the state of an earlier session is available in a later session. How to Delete Mandatory ProfilesYou probably do not want cached profiles to litter your systems. The group policy setting “Delete cached copies of roaming profiles” affects not only roaming, but also mandatory profiles. The setting is located here: Computer Configuration -> System -> User Profiles. If enabled, Windows deletes cached copies of roaming and mandatory profiles at logoff. Unfortunately this group policy setting does not seem to have any effect on Server 2008 SP1. I simply could not get that version to delete cached mandatory profiles at logoff although cached roaming profiles were deleted as expected. There might be a bug in Windows Server 2008 SP1 breaking the deletion of cached mandatory profiles. After updating the machine to SP2 the problem was gone. On all other versions of Windows I tested (see below) mandatory profiles were deleted correctly if “Delete cached copies of roaming profiles” was enabled. Source and more: http://blogs.sepago.de/helge/2010/01/24/are-mandatory-user-profiles-deleted-at-logoff-or-cached/
Show/Hide comment form
|