Application to end processes automatically

Is there an applicatin that will automatically end a specific process when it starts running?

This would be used on a server 2003 R2 32-bit box.
Who is Participating?
Shift-3Connect With a Mentor Commented:
You could use a vbscript like the one below.

'Adapted from
arrProcesses = Array("freecell.exe","sol.exe","spider.exe","winmine.exe")
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
i = 0
Set colMonitoredProcesses = objWMIService. ExecNotificationQuery _        
    ("Select * From __InstanceCreationEvent Within 5 Where TargetInstance ISA 'Win32_Process'")
Do While i = 0
    Set objLatestProcess = colMonitoredProcesses.NextEvent
    strProcess = LCase(objLatestProcess.TargetInstance.Name)
    For Each strName in arrProcesses
        If strName = strProcess Then
        End If

Open in new window

What kind of process you will kill automatically?
When it is a Windows process, there is possible a service.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.