IIS 7 and Above
Stop the w3wp process?
Re: Stop the w3wp process?
Apr 23, 2010 08:44 AM|marcoshaw|LINK
I would go with Don's suggestion. If you really want to use PowerShell to kill the process, you can, but you have to add extra code by creating what is called a runspace. There's also other solutions out there for being able to run PowerShell from ASP.NET
like "PowerShellASP" (www.powershelltoys.com).
I've not really played with these... I don't know what it might involve with impersonation.