How to monitor and kill a process automatically on windows by process name [closed]
you can make a vbscript, (or batch), then run as scheduled task,eg
Set objArgs = WScript.Arguments
strProcess = objArgs(0)
strComputer = "."
Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colProcesses = objWMIService.ExecQuery("Select * from Win32_Process Where Name ='" & strProcess & "'")
If colProcesses.Count = 0 Then
Wscript.Echo strProcess & " is not running."
Else
Wscript.Echo strProcess & " is running."
'Kill the process
For Each objProcess in colProcesses
objProcess.Terminate()
Next
End If
save the above as terminate.vbs and put this as schedule task
cscript /nologo terminate.vbs "sleep.exe"
Try attaching a debugger to the process and break. It shouldn't pop up anymore (since it's still running), but it shouldn't bother you anymore either (from the break). Apparently one of my co-workers used to do this to avoid automatic reboots after installing updates.
AnVir Task Manager
Freeware process and startup manager. Remove spyware and optimize performance. Monitor and manage processes, services, internet connections, DLLs, drivers. Descriptions for startup programs and all Windows services. Alerts on new startups.
Icons in tray for CPU usage and disk load. Quick access to last launched programs in tray. Hide windows to system tray.
Automatically change process priority, permanently block undesired processes. Furthermore, comes with an attractive user interface.
Advanced startup manager allows you to: · Get full list of applications running automatically on Windows startup including all hidden applications. · Get all additional information about startup applications. · Disable/enable, add/delete, edit startup entries. · Stop or run once again startup application.
Startup guard allows you to: · See alert when any new application adds itself to startup. · Forbid some applications to be added to startup. · See alert when Internet Explorer home page was changed.
Process manager allows you to: · Get full information about all processes: CPU and memory usage, executable name with full path, priority, work time, user name. · Get executable file properties, icon and version information. · Stop many processes with one click. · Change process priorities.
Tray icons allows you to: · Get current information about CPU usage including list of most active programs. · Get current information about HDD usage. Protection against viruses includes: · Detection and destruction of most propagated viruses. · Virus database update. · Minimum usage of system resources.
A free and portable version can be downloaded here.
however, you may consider the Pro version, to permanently block undesired processes:
create a 'black list' of processes that are automatically terminated immediately after these processes start. Add to this list annoying and undesired processes that are started automatically without your will.
Anvir Task Manager Pro is shareware, try before you buy.
If app blacklisting is enough for you, so you could take a look at Process Blocker it's free. Process can be blocked by its name (with wildcard support in paths and names), as well by its CRC32.
In paid version it has some additional features, such as whitelisting by process name, CRC32, and logged on username or user's group.