R.Demandt said:
I want to prohibit a specific process to run, it's named "red.exe". I am not
an administrator on the network but the program does run under my username
and my priviliges. I need a program or sript that look for the process
"red.exe" and kills it automatically.
Thanks for any response,
R.Demandt
First you need to check so that the red.exe is not a virus/trojan.
Please run
MRT.exe /F:Y
and see if your computer is infected. If you still want to kill the red.exe
process read on...
Create a script like this. Name the file to KillRed.vbs
If you need to end this script. Kill the process wscript.exe wih the
taskmanager.
_____________________
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colMonitoredProcesses = objWMIService. _
ExecNotificationQuery("select * from __instancecreationevent " _
& " within 1 where TargetInstance isa 'Win32_Process'")
i = 0
Do While i = 0
Set objLatestProcess = colMonitoredProcesses.NextEvent
If objLatestProcess.TargetInstance.Name = "red.exe" Then
objLatestProcess.TargetInstance.Terminate
End If
Loop
_____________________