After installing VDA , Event 1008 & 2004 appear in the Application event logs on "Citrix Desktop service" start

After installing VDA , Event 1008 & 2004 appear in the Application event logs on "Citrix Desktop service" start

book

Article ID: CTX693948

calendar_today

Updated On:

Description

Applicable products:

XenDesktop 7.15, XenApp 7.15, CVAD 1808, CVAD 1811

Symptoms of Error:

After installing VDA , Event 1008 & 2004 appear in the Application event logs on "Citrix Desktop service" start

EventID: 1008

 Source: PerfLib
 Description: The Open Procedure for service "WmiApRpl" in DLL "C:\Windows\system32\wbem\wmiaprpl.dll" failed. Performance data for this service will not be available. The first four bytes (DWORD) of the Data section contains the error code.


EventID: 2004

Source: PerfNet

Description: Unable to open the Server service performance object. The first four bytes (DWORD) of the Data section contains the status code



We can see broker agent load perfnet.dll at the time of the event however there is no indication of a failure within our CDF traces
In the procmon similarly there is no clear indication of a failure, however we do see multiple permissions errors for "Network Service Account" 

Workarounds:

Error 1008  - give full permissions on the following key to the network service account

    HKLM\SYSTEM\CurrentControlSet\Services\wmiApRpl
    HKLM\SYSTEM\CurrentControlSet\Services\BITS
    HKLM\SYSTEM\CurrentControlSet\Services\MSDTC
    HKLM\SYSTEM\CurrentControlSet\Services\NETFramework


Error 2004

Add Network Service account to the Local Administrators group on the VDA.

Solution:

This is a known limitation and these events can be safely ignored because they do not adversely affect functionality of any Citrix component. 

 

Environment

Caution! Using Registry Editor incorrectly can cause serious problems that might require you to reinstall your operating system. Citrix cannot guarantee that problems resulting from the incorrect use of Registry Editor can be solved. Use Registry Editor at your own risk. Be sure to back up the registry before you edit it.

Issue/Introduction

After installing the VDA software 2 errors are generated on Citrix Desktop Service start EventID: 1008 Source: PerfLib EventID: 2004 Source: PerfNet This is a known limitation and these events can be safely ignored because they do not adversely affect functionality of any Citrix component.

Additional Information

Discussion:

https://discussions.citrix.com/topic/362660-error-in-event-viewer-after-vda-installation/


Reference docs:

https://serverfault.com/questions/555938/unable-to-open-the-server-service-performance-object
https://social.technet.microsoft.com/Forums/en-US/b9ac65b1-ade6-4be2-a670-cd8cde731e7d/error-event-id-2004?forum=winserversetup
https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/cc727117(v=ws.10)