I am trying to setup Performance Counters on a Windows Server 2008 R2 server and have successfully setup the counters. The problem is that I need to manually start the counters each time the server is restarted.
I found a neat trick to add the "logman" command to the registry to start the counters automatically, however, this command does not work because the command requires elevation.
Is there a way to elevate this command? Please note that as I have the command in the registry, I am unable to just simply run the CMD program as Administrator. I am happy to consider any suggestions or work arounds, so long as they are simple and work!