Click here to Skip to main content
15,908,172 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello!

I'm looking for a quick way to find out the cumulative CPU usage of all processes of a specific user on a Terminal Server, as displayed by the TaskManager in the tab "Users".

The solutions via PerformanceCounters, which I have looked at so far, are all much too slow and require a relatively large amount of CPU time themselves.

My questions:
How do I determine all processes for a specific TS Session?
How do I determine the total CPU load of these processes?

If someone had something there, I would be very grateful.

Greetings

Ken

What I have tried:

I looked at various solutions, but they were all much too slow.
Posted
Comments
[no name] 28-May-20 15:31pm    
First you make it work, then you optimize. I see no code to "optimize".

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900