I am looking for a way to kill processes matching a certain name if (and only if) their uptime is 4hours+
I plan to then schedule the script every hour or so to detect and kill processes matching my criterias.
I have been googling around for solutions with batch, powershell and vbscripts but did not find anything matching my needs. Any help will be apreciated!