Your Profile Is Not Unloaded If You Change Printer Settings and Then Log Off

This article was previously published under Q327984
This article has been archived. It is offered "as is" and will no longer be updated.
If you change printer settings and then log off, your profile may not be unloaded. When this problem occurs, the following error message is recorded in the Userenv log:
USERENV(c0.bc) 07:57:11:396 MyRegUnLoadKey: Hive unload for S-1-5-21-1202660629-1935655697-1957994488-1000 failed due to open registry key.
Windows will try unloading the registry hive once a second for the next 60 seconds (max).
USERENV(c0.bc) 07:58:12:443 MyRegUnLoadKey: Windows was not able to unload the registry hive.
USERENV(c0.bc) 07:58:12:463 MyRegUnLoadKey: Failed to unmount hive 5
USERENV(c0.bc) 07:58:12:483 MyRegUnloadKey: Mutex released. Returning 0
USERENV(c0.bc) 07:58:12:503 UnloadUserProfile: Didn't unload user profile err = 5
This problem is caused by a handle leak in Shlwapi32.dll.

Service Pack Information

To resolve this problem, obtain the latest service pack for Microsoft Windows 2000. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:
260910 How to Obtain the Latest Windows 2000 Service Pack

Hotfix Information

A supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing this specific problem.

If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not appear, submit a request to Microsoft Customer Service and Support to obtain the hotfix.

Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft Web site: Note The "Hotfix download available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.The English version of this fix has the file attributes (or later) that are listed in the following table. The dates and times for these files are listed in coordinated universal time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel.
   Date         Time   Version        Size     File name   --------------------------------------------------------   26-Aug-2002  18:02  5.0.2195.6030  250,640  Localspl.dll   26-Aug-2002  18:02  5.0.2195.6023  381,712  Printui.dll   26-Aug-2002  18:02  5.0.2195.6030   79,632  Spoolss.dll   26-Aug-2002  18:02  5.0.2195.6032  114,448  Winspool.drv   26-Aug-2002  18:02  5.0.2195.5996   54,544  Wlnotify.dll				

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. This problem was first corrected in Microsoft Windows 2000 Service Pack 4.
For additional information about how to obtain a hotfix for Windows 2000 Datacenter Server, click the article number below to view the article in the Microsoft Knowledge Base:
265173 The Datacenter Program and Windows 2000 Datacenter Server Product

Article ID: 327984 - Last Review: 02/27/2014 21:14:48 - Revision: 3.7

Microsoft Windows 2000 Server SP1, Microsoft Windows 2000 Service Pack 3, Microsoft Windows 2000 Server SP2, Microsoft Windows 2000 Advanced Server SP1, Microsoft Windows 2000 Advanced Server SP2, Microsoft Windows 2000 Advanced Server SP3, Microsoft Windows 2000 Professional SP1, Microsoft Windows 2000 Professional SP2, Microsoft Windows 2000 Service Pack 3

  • kbnosurvey kbarchive kbautohotfix kbhotfixserver kbqfe kbprint kbwin2ksp4fix kbbug kbfix kbqfe kbwin2000presp4fix KB327984