Using IIS6 to run Process.Start PSKill.exe. PsKill starts and never ends

view full story

http://serverfault.com – I'm using the following code (any tried many variations) in a web page that is supposed to kill a process on the server: Process scriptProc = new Process(); scriptProc.StartInfo.FileName = @"c:\windows\system32\killmyprocess.vbs"; scriptProc.Start(); scriptProc.WaitForExit(); scriptProc.Close(); The VBS file is supposed to kill a process using pskill.exe, but never works. There are no errors in the application log. I noticed pskill.exe is in task manager every time I run the page, and never goes away. The process pskill.exe is being run as NEWTWORK SERVICE when run from IIS, but it works (HowTos)