PSKill from ASP.net

  • Thread starter Thread starter Shawn
  • Start date Start date
S

Shawn

I am writing an asp.net application that can be used by our Network
Admins. The goal is to allow them to kill process/restart services all
from a secure web page. I am taking an argument (remote servername)
and then enumerating the currently running processes. I know that the
system.diagnostics.process only allows you to kill local process so I
am creating another process to use pskill from sysinternals. I have
verified that impersonation is working by using
response.write(system.security.principal.windowsidentity.getcurrent().name)
but I am still getting Access Denied --- even to kill notepad.exe on
my dev box. any help would be great. thanks in advance.
 
Rather than elevating the rights on you ASP.NET code I would write a service
that runs as a user that can do the kill, you talk to this service from your
ASP.NET using .NET remoting.

Steve
 
Thats a good idea, I have not done anything with Remoting yet but I do
have the Wrox book that has a chapter about it. Will look into it.
Thanks again!
 
Back
Top