troubleshooting Question

Top ten CPU usage by usename and apps

Avatar of sara2000
sara2000 asked on
8 Comments1 Solution33 ViewsLast Modified:
We have a terminal server that has been accessed by a few users. I would like to know which user's process takes more CPU.  Sysadmin out there must be using a simple PS script to gather the top 10 CPU process consumed by end-users, I will appreciate if you could share with me.  I use below command at present, but can not e-mail to group of users.
Get-Process -IncludeUserName | Sort-Object CPU -desc | Select -first 5| Select ProcessName,ID,CPU,UserName,Description | Format-Table -AutoSize
Join our community to see this answer!
Unlock 1 Answer and 8 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 8 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros