Prohibit process to run

G

Guest

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
 
G

Guest

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
_____________________
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Windows XP Prohibit record run history 0
Prohibit users from saving to the hard drive 1
Killing a process 2
Parent controls 4
Comodo Firewall help 5
Windows XP Scripting question for limited users 1
CD ROM Access prohibited 12
Administrator has prohibited access to ... 3

Top