User Profile Folders Are Not Deleted After Logging Off

ID: Q251278


The information in this article applies to:
  • Microsoft Windows NT Server versions 4.0, 4.0 SP4, 4.0 SP5, Terminal Server Edition


SYMPTOMS

On Windows NT Server, Terminal Server Edition, when you enable the Delete Cached Profile (DeleteRoamingCache) feature and a user logs off from the Terminal Server, the profile is copied back to the central profile location and the cached copy on the terminal server box is deleted.

In the process of deleting this cached copy, Terminal Server recursively removes all the folders under the user's profile folder. But, the top level folder of the user profile might not be removed.

This seems as if the Delete Cached Profile setting did not work, but the empty folder does not cause any profile corruption.

Userenv log indicates error 32, a sharing violation occurred.

1:USERENV: DeleteProfile: Delnode failed. Error = 32
1:USERENV: UnloadUserProfile: DeleteProfileDirectory returned false (2).
Error = 32


CAUSE

This issue can occur if the current directory for the Winlogon process running under the user's context gets set to the user's profile folder incorrectly.


RESOLUTION

A supported fix that corrects this problem is now available from Microsoft, but it has not been fully regression tested and should be applied only to systems experiencing this specific problem. If you are not severely affected by this specific problem, Microsoft recommends that you wait for the next Windows NT 4.0 Terminal Server service pack that contains this fix.

To resolve this problem immediately, contact Microsoft Product Support Services to obtain the fix. For a complete list of Microsoft Product Support Services phone numbers and information on support costs, please go to the following address on the World Wide Web:

http://www.microsoft.com/support/supportnet/overview/overview.asp
The English-language version of this fix should have the following file attributes or later:

   Date        Time               Size      File name    Platform
   ---------------------------------------------------------------
   01/18/2000  05:38p             207,120   Msgina.dll   i386 


STATUS

Microsoft has confirmed this to be a problem in Windows NT 4.0 Terminal Server.

Additional query words:

Keywords : kbui kbbug4.00 kbfix4.00
Version : winnt:4.0,4.0 SP4,4.0 SP5
Platform : winnt
Issue type : kbbug


Last Reviewed: January 19, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.