SYMPTOMS
When you try to use the
stdregprov class in Windows Management Instrumentation (WMI) to read values
in the
HKEY_CURRENT_USER
(HKCU) registry hive, you may receive the following error
message:
Object not a collection
If you
receive a return code from the
EnumKey method, the return code is return code 5. Return code 5 means
that access is denied.
Additionally, the following event message may be
logged in the Application event log in Event Viewer:
Source: Userenv
Type: Warning
Event ID: 1517
Description: Windows saved user
Domainname\username registry while an application or
service was still using the registry during log off. The memory used by the
user's registry has not been freed. The registry will be unloaded when it is no
longer in use.
This is often caused by services running as a user
account. Try configuring the services to run in either the LocalService or
NetworkService account.
For more information, see Help and Support
Center at http://support.microsoft.com.
This
problem may occur in Microsoft Windows Server 2003.