Old chestnut I know, but a new slant. This is with WinXP SP3, and ZCM 10.2,
new install. Created Volatile DLU against eDir, with no caching.

User accounts are removed, but user profile directories accumulate on the
workstation for each login. UPHClean shows nothing. ZAC log level debug
shows this during logout:

[DEBUG] [07/24/2009 11:39:30.859] [1604] [ZenworksWindowsService] [21]
[test1] [dlu policy] [] [Entering PrepareForLogouttest1] [] []
[DEBUG] [07/24/2009 11:39:30.859] [1604] [ZenworksWindowsService] [21]
[test1] [dlu policy] [] [ExtensionUtils.IsTerminalServer() :
FalseExtensionUtils.IsLastLocalUserSession(request .UserName) : True] [] []
[DEBUG] [07/24/2009 11:39:30.859] [1604] [ZenworksWindowsService] [21]
[test1] [dlu policy] [] [GroupName in getLocalizedGroupName : Users,
wellKnownGroup : 32] [] []
[DEBUG] [07/24/2009 11:39:30.859] [1604] [ZenworksWindowsService] [21]
[test1] [dlu policy] [] [Localized group name is 'Users'] [] []
[DEBUG] [07/24/2009 11:39:30.859] [1604] [ZenworksWindowsService] [21]
[test1] [dlu policy] [] [ GetVolatileCacheData] [] []
[DEBUG] [07/24/2009 11:39:30.859] [1604] [ZenworksWindowsService] [21]
[test1] [dlu policy] [] [RestoreUserforVolatility] [] []
[DEBUG] [07/24/2009 11:39:30.859] [1604] [ZenworksWindowsService] [21]
[test1] [dlu policy] [] [Volatile User cache - during logout - done] [] []
[DEBUG] [07/24/2009 11:39:30.859] [1604] [ZenworksWindowsService] [21]
[test1] [dlu policy] [] [ checkLogout True] [] []
[DEBUG] [07/24/2009 11:39:30.859] [1604] [ZenworksWindowsService] [21]
[test1] [dlu policy] [] [Inside DLUUserObject Logout() - VolatileUser :
True] [] []
[DEBUG] [07/24/2009 11:39:31.125] [1604] [ZenworksWindowsService] [21]
[test1] [dlu policy] [] [Inside RestoreFileRights backedUpFiles.Length : 0]
[] []
[DEBUG] [07/24/2009 11:39:31.125] [1604] [ZenworksWindowsService] [21]
[test1] [dlu policy] [] [Inside DLUUserObject Logout() - this.IsUserNotExist
: True] [] []
[DEBUG] [07/24/2009 11:39:31.125] [1604] [ZenworksWindowsService] [21]
[test1] [dlu policy] [] [Inside DeleteProfile API userName : test1] [] []
[DEBUG] [07/24/2009 11:39:31.125] [1604] [ZenworksWindowsService] [21]
[test1] [dlu policy] [] [Inside DeleteProfile API :
S-1-5-21-4225345017-1351580617-1477623935-1104] [] []
[DEBUG] [07/24/2009 11:39:31.125] [1604] [ZenworksWindowsService] [21]
[test1] [dlu policy] [] [retvalue of DeleteProfile call : 0] [] []
[DEBUG] [07/24/2009 11:39:31.125] [1604] [ZenworksWindowsService] [21]
[test1] [dlu policy] [] [GETLastError DeleteProfile call : 87] [] []
[DEBUG] [07/24/2009 11:39:31.125] [1604] [ZenworksWindowsService] [21]
[test1] [dlu policy] [] [Marking undeleted profile files for deletion at
reboot] [] []
[DEBUG] [07/24/2009 11:39:31.218] [1604] [ZenworksWindowsService] [21]
[test1] [dlu policy] [] [isProfileDeleted -1 : False] [] []
[DEBUG] [07/24/2009 11:39:31.312] [1604] [ZenworksWindowsService] [21]
[test1] [dlu policy] [] [Inside DLUUserObject Logout() -1 Account has been
removed] [] []
[DEBUG] [07/24/2009 11:39:31.312] [1604] [ZenworksWindowsService] [21]
[test1] [dlu policy] [] [DLU IsUserSession-1 : True] [] []
[DEBUG] [07/24/2009 11:39:31.312] [1604] [ZenworksWindowsService] [21]
[test1] [dlu policy] [] [DLU IsUserSession-2 : True] [] []
[DEBUG] [07/24/2009 11:39:31.312] [1604] [ZenworksWindowsService] [21] []
[ZenCache] [] [(Thread 21) DeleteObject(RandomRefreshCachePopulated,
UserContext{_LocalId=test1; _RemoteId=test1}) called] [] []
[DEBUG] [07/24/2009 11:39:31.437] [1604] [ZenworksWindowsService] [21] []
[ZenCache] [] [(Thread 21) DeleteObject returning True in 116 ms] [] []
[DEBUG] [07/24/2009 11:39:31.437] [1604] [ZenworksWindowsService] [21]
[test1] [dlu policy] [] [RetValue from ClearRandomRefreshFlag is : True] []
[]
[DEBUG] [07/24/2009 11:39:31.437] [1604] [ZenworksWindowsService] [21]
[test1] [dlu policy] [] [RemoveCache] [] []
[DEBUG] [07/24/2009 11:39:31.437] [1604] [ZenworksWindowsService] [21]
[test1] [dlu policy] [] [RemoveCache done] [] []
[DEBUG] [07/24/2009 11:39:31.437] [1604] [ZenworksWindowsService] [21]
[test1] [dlu policy] [] [ RemoveVersionCacheData] [] []
[DEBUG] [07/24/2009 11:39:31.437] [1604] [ZenworksWindowsService] [21]
[test1] [dlu policy] [] [RemoveCache] [] []
[DEBUG] [07/24/2009 11:39:31.437] [1604] [ZenworksWindowsService] [21]
[test1] [dlu policy] [] [RemoveCache done] [] []
[DEBUG] [07/24/2009 11:39:31.437] [1604] [ZenworksWindowsService] [21]
[test1] [dlu policy] [] [Account Removed in Prepare for Logout] [] []
[DEBUG] [07/24/2009 11:39:31.437] [1604] [ZenworksWindowsService] [21]
[test1] [dlu policy] [] [Exiting PrepareForLogouttest1] [] []
[DEBUG] [07/24/2009 11:39:31.437] [1604] [ZenworksWindowsService] [21]
[test1] [dlu policy] [] [Execute policy operation completed for policy
type - dlu policystatus :Success] [] []
[DEBUG] [07/24/2009 11:39:31.437] [1604] [ZenworksWindowsService] [21]
[test1] [dlu policy] [] [the status returned is NoAction] [] []
[DEBUG] [07/24/2009 11:39:31.437] [1604] [ZenworksWindowsService] [21]
[test1] [dlu policy] [] [Setting handler completed to true.] [] []
[DEBUG] [07/24/2009 11:39:31.437] [1604] [ZenworksWindowsService] [21]
[test1] [dlu policy] [] [Checking to see if timer thread is still alive.] []
[]
[DEBUG] [07/24/2009 11:39:31.437] [1604] [ZenworksWindowsService] [21]
[test1] [dlu policy] [] [Timer thread is still alive. Aborting it.] [] []
[DEBUG] [07/24/2009 11:39:31.453] [1604] [ZenworksWindowsService] [21]
[test1] [dlu policy] [] [Timer thread aborted.] [] []
[DEBUG] [07/24/2009 11:39:31.453] [1604] [ZenworksWindowsService] [21]
[test1] [dlu policy] [] [calling
CreateActionResult(CreateActionHandlerResult normal] [] []
[DEBUG] [07/24/2009 11:39:31.453] [1604] [ZenworksWindowsService] [21]
[test1] [dlu policy] [] [UpdatePostActionRequest called time out is 0] [] []


It looks like an error is thrown trying to remove the profile "GETLastError
DeleteProfile call : 87". Is there a key to what error 87 means? Is it a
syntax problem with the API call?

I noticed that the line "Marking undeleted profile files for deletion at
reboot" appears next, and if this worked this would be a vast improvement
over ZFD, which didn't attempt this at all to my knowledge.

After reboot I saw that files within the user profiles indeed disappear, but
most of the folder structure doesn't, and so, even though no space is taken
up, the Documents & Settings area is full of clutter. Then a clue: A few
files did not get cleaned out of profiles, and I saw that these had been
flagged as Read-Only, since they were document templates. I turned on the
Attribute flag in Explorer view and saw that there were a number of folders
showing as R. These had been derived from the Default User and All Users
profiles. Although you can delete these without being asked, you cannot
remove the RO flag using Windows or ATTRIB. This is "by design" behaviour
by Microsoft: these are Customized folders like My Music, Favorites and the
User Profile itself, see http://support.microsoft.com/kb/256614. I changed
the registry key as this document says. On new logins, the R attributes on
My Music etc are replaced with the S attribute. The profile still fails to
delete on logout, but it *IS* deleted at reboot.

So I think for me the 10.2 ZCM agent is not removing profiles at reboot
becaue of the RO flag on customised folders and template files. I don't
know what is stopping the profile being cleared on logout though. Is
anybody else experiencing a similar thing?
..
regards

Martin