Are Mandatory User Profiles Deleted at Logoff – or Cached?
Tuesday, 26 January 2010 by Michel Roth
Helge Klein explores how Mandatory Profiles removal works in the newer versions of Windows.

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 Profiles

You 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/


Related Items:

Flex Profile Kit 4.0.1 Reviewed (1 April 2005)
Changes in the Windows Vista and Longhorn Profiles (2 December 2006)
Jumping Profiles 2.0 Reviewed (18 April 2005)
Free Profile Management Tool - BOMBProf (20 October 2006)
Virtualization Personalization ? RTO Software and Appsense (7 July 2009)
A First look at RTO Virtual Profiles (9 April 2008)
Dealing with Profiles and Policies In Vista and Server 2008 (26 June 2008)
How to customize default user profiles in Windows 7 (23 December 2009)
Immidio Flex Profiles Advanced Released! (24 August 2009)
REMProf - New Citrix / Terminal Server Windows Profile Utility (29 June 2007)
Comments (0)