Events on Server VDA:
Event ID : 1039
Source : Citrix Desktop Service
Error Details : The Citrix Desktop Service failed to initialize a performance counter. Load management associated with this counter will be disabled.
Rebuild WMI performance counters:
Rebuild WMI providers ( https://techcommunity.microsoft.com/t5/ask-the-performance-team/wmi-rebuilding-the-wmi-repository/ba-p/373846 )
1. Disable and stop the winmgmt service
2. Remove or rename C:\Windows\System32\wbem\repository
3. Enable and start the winmgmt service
4. In elevated command prompt Navigate to “C:\Windows\System32\wbem\”
5. Run the following command: ‘for /f %s in ('dir /b *.mof') do mofcomp %s’
*Note: This will take a minute or so to complete
6. Now run the command: ‘for /f %s in ('dir /b en-us\*.mfl') do mofcomp en-us\%s’
7. Run “winrm quickconfig” in command line.
Rebuild performance counters:
1. In elevated command prompt run “lodctr /R”
Issue with Performance counters