Kill all Internet Explorer processes that have been running for more than 5 minutes using Powershell
internet-explorer, kill, powershell, process
Solution
Another way:
get-process iexplore | ? { ([DateTime]::Now - $_.StartTime).TotalSeconds -gt 300 } | stop-process
Problem
I would like to kill all Internet Explorer processes that have been running more than 5 minutes. This has to be a command in one line using Powershell v1.0.