Powershell (or vbscript) to kill process if more than 1 exists
Posted on 2009-02-12
I have a process on a windows 2003 r2 enterprise server that runs once every 10 minutes. It will occasionally lock up and the following processes will launch and lock up as well.
I'm trying to write a Powershell script (or vbscript) that will run every 10 minutes to check if there is more than 1 process, and if so, kill them all. It seems pretty simple, but I'm not very experienced in Powershell and am trying to learn.
Any help would be appreciated.