Check if theres more then X number of the same processes

(imported topic written by SystemAdmin)

Im looking to find out if theres more then x number of the same processes running for 2 different apps

Q: number of (it = “notepad.exe”) of (string values of selects “Name from win32_process” of wmi)

A: 64

T: 40.403 ms

the above shows the total number of all processes

these 2 processes start to load up and kill the server slowly

(imported comment written by BenKus)

You probably want to do:

Q: number of (string values of selects “Name from win32_process” of wmi) whose (it = “notepad.exe”)

Ben

(imported comment written by jessewk)

This should be much more efficient than the WMI call:

Q: number of running applications whose (name of it = “notepad.exe”)