views:

547

answers:

4

Hello

Problem:

I can add+use performance counters in w2k8 with normal user privileges.

If I try to create or access a Process performance counter, i get a message that the counter does not exist.

Same thing can be tried out in a powershell, a message appears that the counter does not exist.

If I do the same thing as Administrator account (not any administrator account, THE Administrator acoount), I can access the counter without any problem.

Other counters (like processor) work fine with normal user oder admin user accounts.

So what is needed to access process counters from a (let's say .net) programm without the need of the Administrator account?

tia

p.s. no, I won't sign in. Don't like OpenID

A: 

You can access it without the administrator account, but whatever account you do use has to be an administrator, and have administrator privileges.

casperOne
A: 

The other account where only this type of counter doesn't work has local administrator privileges. Therefore that is not the answer. I forgot to mention: UAC is turned on on the machine.

+1  A: 

You need to add that account/group to "Profile single process" group policy setting in "Local Group Policy" editor. User rights are assigned under Computer Configuration -> Windows Settings -> Security Settings -> Local Policies -> User Rights Assignment

Profile single process

This security setting determines which users can use performance monitoring tools to monitor the performance of nonsystem processes.

Default: Administrators.

ssg
A: 

I'm assuming you're using WMI to create & read the performance counters or you'd be getting a UnauthorizedAccessException. Unless we know what language and true method you're using to do this, we're not going to be much help.

There are ways of working with the Longhorn kernel that don't rely on making a change to the local system to make it work. Making sure you have your application signed and using the right permissions on the project can help.

invenetix