Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Get Top 5 CPU Consuming Processes {PowerShell}
#3
Rainmeter is nice for a quick display, and this is very simple for a powershell script though. Powershell is far more sophisticated than Rainmeter no doubt, but I wasn't sure what else I could do with processes. I could kill all the top 5 processes if I wanted using this script I created, but you probably don't want to do that lol. I have another I created before this to kill and restart explorer.exe:

Code:
$proc = Get-Process

foreach ($objItm in $proc) {
    If ($objItm.ProcessName -eq "explorer") {
        kill $objItm.ID
    }
}

write-host
write-host Explorer has been successfully restarted! -foregroundcolor "Magenta"
write-host

One thing about powershell is that you can send in full command outputs as variables to decide what the next command will do with it, you can split functions, and join them too.
Reply


Messages In This Thread
RE: Get Top 5 CPU Consuming Processes {PowerShell} - by AceInfinity - 08-20-2011, 02:43 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [GUI PowerShell] Get_UserACC - Get All User Accounts Info from WMI (Advanced Script) AceInfinity 4 2,312 01-06-2012, 05:22 PM
Last Post: AceInfinity
  Powershell Services Script AceInfinity 2 1,611 08-17-2011, 10:48 PM
Last Post: AceInfinity
  PowerShell Hotfix List Script - Created by Ace AceInfinity 4 2,187 08-16-2011, 12:09 PM
Last Post: AceInfinity
  ╩ Core Processes Thread ╩ Reality 2 1,176 07-28-2010, 03:10 PM
Last Post: Reality

Forum Jump:


Users browsing this thread: 5 Guest(s)