I'm trying to grant an application running as a service on a Windows 2012 R2 machine to create performance counters. I tried to add the service account the application is running under to the "Performance Monitor Users" group (as suggested in some forums) but it didn't make any difference. The application gets an access denied when accessing in order to create the performance counter category and the performance counter itself:
- HKLM:\SYSTEM\CurrentControlSet\Services
- C:\Windows\Inf
Is there a proper way of granting an application permissions to create performance counters? Because the only way I see is to set the account as local admin and it looks to me like an overkill.