Article ID: 319909 - View products that this article applies to.
This article was previously published under Q319909
The first user who logs on to a workstation after the computer is restarted may experience slow logoff times (more than 60 seconds). When this problem occurs, the Userenv.log file contains entries that are similar to:
USERENV(76c.818) 13:06:00:133 MyRegUnLoadKey: Hive unload for S-1-5-21-789336058-1580818891-1801674531-1106_Classes failed due to open registry key. Windows will try unloading the registry hive once a second for the next 60 seconds (max).
Event Type:ErrorDiagnostic tools (such as Oh.exe) show that Lsass.exe has an open handle to this key.
Windows cannot unload your registry class file. If you have a roaming profile, your settings are not replicated. Contact your administrator.
DETAIL Access is denied. , Build number ((2195)).
The Activeds.dll dynamic-link library (DLL) creates COM instances during initialization. This indirectly causes a handle to HKEY_CURRENT_USER\Software\Classes to be cached. If Activeds.dll is initialized by a thread in a service process while the thread impersonates a user, the handle persists after the user logs off.
To resolve this problem, obtain the latest service pack for Windows 2000. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:
260910The 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.
(http://support.microsoft.com/kb/260910/EN-US/ )How to Obtain the Latest Windows 2000 Service Pack
Note Although the hotfix package for this fix is listed as post-SP3, the fix is included in Windows 2000 Service Pack 3 (SP3).
Date Time Version Size File name -------------------------------------------------------- 15-Apr-2002 15:20 5.0.2195.4898 182,544 Activeds.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 Windows 2000 Service Pack 3.
HKEY_CURRENT_USER\Software\Classes is an alias of HKEY_USERS\_user_sid_Classes, which is a user's private classes hive (the Userprofile\Local Settings\Application Data\Microsoft\Windows\UsrClass.dat file). When it accesses HKEY_CLASSES_ROOT (which is aliased to HKEY_LOCAL_MACHINE\Software\Classes), Advapi32 first checks HKEY_CURRENT_USER\Software\Classes for an override. An open handle to the user's private classes key is cached for performance reasons.
If the IPSec Policy agent is running (it runs in Lsass.exe), it loads and initializes Activeds in the System context during the startup process. User class key overrides are not possible in this case. However, if the agent is not running, the first time that HKEY_CLASSES_ROOT is read may be in the user's context (that is, by an impersonating thread during the user's logon process). This causes a handle to the user's classes key to be cached.
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:
265173For additional information about how to install multiple hotfixes with only one reboot, click the article number below to view the article in the Microsoft Knowledge Base:
(http://support.microsoft.com/kb/265173/EN-US/ )The Datacenter Program and Windows 2000 Datacenter Server Product
296861For additional information about how to install Windows 2000 and Windows 2000 hotfixes at the same time, click the article number below to view the article in the Microsoft Knowledge Base:
(http://support.microsoft.com/kb/296861/EN-US/ )Use QChain.exe to Install Multiple Hotfixes with One Reboot
(http://support.microsoft.com/kb/249149/EN-US/ )Installing Microsoft Windows 2000 and Windows 2000 Hotfixes
Article ID: 319909 - Last Review: February 1, 2007 - Revision: 2.5