"Process performance counter is disabled" exception on Process.GetProcessesByName ( )

Calls to Process.GetProcessesByName fail on certain machines with the following exception:

Process performance counter is disabled so the requested operation cannot be peformed

What, if anything needs to be enabled so that this call will work?
Who is Participating?
Bob LearnedCommented:
What kind of process are you trying to access?
wile_e_coyoteAuthor Commented:
I'm trying to determine if a particulare app is running, ie.  Process.GetProcessesByName ("notepad")
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.