Heavy hardware resource utilization on end-user machines will lead to reduced productivity by hindering users from getting their job done. In this article, we'll discuss how administrators can identify and kill memory-hogging processes. The following PowerShell script will return the top 5 memory-intensive processes.
Alternatively, you can run the following PowerShell script to identify the processes consuming more than 25MB RAM and kill them.
- PS C:\> Get-Process | Where-Object { $_.WorkingSet -gt 25000*1024 } | Sort-Object -Property WorkingSet -Descending | Select-Object -First 5
-
- Stop-Process -Name Process_Name -Confirm -PassThru