

| Process Monitor And Killer |
|
|
|
|
I found a couple of scripts online and joined them together. This script will monitor a specified computer and if a defined process starts, the script will kill it. You could also run this as a logon script by replacing This: strComputer = InputBox("Enter the name of the target computer here!") With this: strComputer = "."
----------COPY EVERYTHING BELOW THIS LINE---------- 'This script will kill a defined process in an Array. arrProcesses = Array("freecell.exe","sol.exe","spider.exe","winmine.exe") 'Enter Processes here in quotes, seperated by a comma! Dim objWMIService, objProcess, colProcess, objWMIService1
i = 0 Set colMonitoredProcesses = objWMIService. ExecNotificationQuery _ Do While i = 0 For Each strName in arrProcesses Set objWMIService1 = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
----------COPY EVERYTHING ABOVE THIS LINE----------
PLEASE MAKE SURE NO WORD WRAPPING IS HAPPENING IN YOUR SCRIPT!!! To make this script work you will need two things!
NOTE: Version 5.6 of the Windows Scripting Host must be installed to run this script!!! This information is provided "AS IS" with no warranties expressed or implied. Advertisements
|










