KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q251278: User Profile Folders Are Not Deleted After Logging Off

Article: Q251278
Product(s): Microsoft Windows NT
Version(s): winnt:4.0,4.0 SP4,4.0 SP5
Operating System(s): 
Keyword(s): kbui kbWinNT4sp6fix
Last Modified: 08-MAY-2002

-------------------------------------------------------------------------------
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
==========

To resolve this problem, obtain the latest service pack for Windows NT Server
version 4.0, Terminal Server Edition. For additional information, please see the
following article in the Microsoft Knowledge Base:

  Q152734 How to Obtain the Latest Windows NT 4.0 Service Pack


STATUS
======

Microsoft has confirmed this to be a problem in Windows NT 4.0 Terminal Server.
This problem was first corrected in Windows NT Server version 4.0, Terminal
Server Edition Service Pack 6.

Additional query words:

======================================================================
Keywords          : kbui kbWinNT4sp6fix 
Technology        : kbWinNTsearch kbWinNT400search kbWinNTSsearch kbWinNTS400search kbNTTermServ400 kbNTTermServ400sp4 kbNTTermServ400sp5 kbNTTermServSearch
Version           : winnt:4.0,4.0 SP4,4.0 SP5
Hardware          : ALPHA x86
Issue type        : kbbug
Solution Type     : kbfix

=============================================================================

THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Copyright Microsoft Corporation 1986-2002.