Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1407
  • Last Modified:

"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?
0
wile_e_coyote
Asked:
wile_e_coyote
  • 2
1 Solution
 
Bob LearnedCommented:
What kind of process are you trying to access?
0
 
wile_e_coyoteAuthor Commented:
I'm trying to determine if a particulare app is running, ie.  Process.GetProcessesByName ("notepad")
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now