they said it should work. I sent them this code and they replied with these remarks. I'm not very good at coding vbscript...is there a way to do what they are saying?
The code I sent......................
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colProcessList = objWMIService.ExecQuery _
("SELECT * FROM Win32_Process WHERE Name = 'iexplore.exe'")
For Each objProcess in colProcessList
objProcess.Terminate()
Next
'continue from the line of "next" above
getobject("winmgmts:\\" & strComputer & _
"\root\cimv2:win32_process").create _
"explorer " & "
Here is their reply:
After looking at it again, the big problem I see is that he is creating an instance of "explorer.exe" and not "iexplorer.exe". You can drop an URL into explorer without calling up the interface. He needs to create a proper instance of "iexplorer" (Internet Explorer).
He could also change how he is terminating IE. His method will shut down all instances of IE, instead of the one that generated the SysTrack alarm. He could just grab the Process ID of the IE instances, and terminate the last one instead of killing all instances. He can even get the URL info from the IE, and terminate the offending instance.