TaskKill from batch file RRS feed

  • Question

  • User-1444423207 posted

    hello Everyone,

      I created this batch file that executes the taskKill command to kill the process on the remote server. When I call this batch file from the console applications, it runs fine and kills the process on the remote server, but when I call it from web application, it runs fine, but does not kill the process. After looking through lot of google articles, I found out that I am running under aspnet account in web applications and that is why i cannot kill the process on remote server by calling the batch file from my web application. Is there any way I can call the batch file from web application that in turn can kill the process on remote server or if there is any other way. Some one sugested me .net remoting, I am not sure if this is the solution.


    Monday, March 26, 2007 6:00 PM


  • User-1087479560 posted

    You can impersonate a account with enough previlege to achieve this.
    Hope it helps.
    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, March 27, 2007 4:21 AM