This article describes how to troubleshoot WinCollect error code 0x0005: Access denied.
For WinCollect agents V7.1.2 and below
The message below is displayed in the device log on the remote Windows host in C:\Program Files(x86)\IBM\WinCollect\logs :
C:\Program Files(x86)\IBM\WinCollect\logs
ERROR Device.WindowsLog.EventLogMonitor : Failed to open event log IP address [\\IP address:System]; will try again in approx 60 seconds. Reason: Error code 0x0005: Access is denied.
For WinCollect agents V7.2.0 and above
For WinCollect 7.2.0, agents send Syslog messages that can be viewed from the Log Activity tab.
To filter events by WinCollect agents 7.2.0 and above:
Click the Admin tab.
Click the WinCollect icon.
Select an agent from the list.
Click Show Events .
The Log Activity tab is displayed and filtered by the log sources associated with the selected agent.
The sample Syslog events below can be displayed or can be associated with the Access Denied error:
LEEF:1.0|IBM|WinCollect|7.2|4|src=Hostname dst=IP address sev=3 log=Code.RegistryCacheInfo.\\IPaddress.InitializeRegistryInfo msg=Failed to query installation language on \\ IP address (Error: Error code 0x0005: Access is denied.). Defaulting to US English. LEEF:1.0|IBM|WinCollect|7.2|4|src=Hostname dst=IP address sev=4 log=Device.WindowsLog.RegistryCacheInfo.\\IPaddress.InitializeEnvironmentInfo msg=Couldn't retrieve environment on machine \\IP address. LEEF:1.0|IBM|WinCollect|7.2|4|src=Hostname dst=IP address sev=4 log=Device.WindowsLog.RemoteMessageFormatter::GetMessageA.IPaddress msg=We can retrieve logs for this machine (\\IP address) but we can't seem to access the machine's registry. This means that the 'Message=' portion of the payload will contain only the insertion values (no formatting will be present). This could adversely affect the parsing of the log by the receiver.
Error code 0x0005: Access denied can be caused by the following:
Error code 0x0005: Access denied
The user configured in the log source does not have permission to read the remote registry for the system that the user is trying to poll for events.
The Remote Registry service is disabled on the Windows host that the user is trying to poll for events.
WinCollect agents that remotely poll other systems for events use the remote registry to determine the operating system of the remote event source.
These agents read the remote registry to collect information on how to format events into name=value pairs (event formats have changed on Windows operating system versions over the years).
name=value
When a WinCollect agent cannot retrieve this information, the Error code 0x0005: Access denied message is displayed.
If you receive the Error code 0x0005: Access Denied message: Test that the user configured in your log source can display the remote registry of another Windows host.
Error code 0x0005: Access Denied
If you are remotely polling another Windows host for events, remotely open the event viewer from the system running the WinCollect agent:
Log on to the Windows host that has the WinCollect agent locally installed.
Select Start > Programs > Administrative Tools , and then click Event Viewer .
Click Action > Connect to another computer.
Select the Another computer option and type the IP address or host name of the server you want to remotely poll for events.
Click the Connect as another user check box.
Click Set User .
In the User name field, type the domain/username for the user specified in your log source configuration.
Type the password for the user and click OK .
If this test fails, review permissions or verify that the remote registry permission and services are enabled.
1. Verify that user in your log source includes correct user rights assignment.
The user defined in your log source must be able to read the remote registry of the Windows host that you are polling for events.
The access denied error message is common when administrators create a specific user to remotely poll for events, but do not give the user permission to read the remote registry.
This issue can be resolved by updating the Group Policy Object or local policy on the remote system to give the user permission o read the remote registry.
For additional information on managing remote access to the registry on Windows systems, see the following Microsoft Support article: How to Manage Remote Access to the Registry
2. Verify that remote registry service is enabled on remote system. (If the remote registry service is disabled, access denied error can generate 0x0005 error messages.)
Log into the remote system.
Select Start > Programs > Administrative Tools , and then click Services .
In the Status column, the Remote Registry service must display Started .
Note: If the remote operating system is Windows 2003, verify that the error is not an operating system issue.
There is a resolved issue where the remote registry in Windows 2003 cannot not be accessed, even when enabled.
If remotely polling for events from Windows 2003 operating systems, consult the following Microsoft Support article: Can't access "Remote Registry" Service after upgrading to Windows 2003
2021-02-01: Article reviewed for accuracy; article found to be relevant and valid