Restart Server from ASP.NET application when AppPool is ran under LocalSystem or LocalService account

Posted by kape123 on Stack Overflow See other posts from Stack Overflow or by kape123
Published on 2011-11-27T01:27:46Z Indexed on 2011/11/27 1:50 UTC
Read the original article Hit count: 283

Filed under:
|
|
|

Is it possible to restart server from ASP.NET application that is hosted by LocalSystem or LocalService account. This is working when I create custom administrative account and put AppPool to run under that account:

Process.Start("shutdown", "/r /d 4:1 /t 10");

However, I don't want to have custom accounts (because of password expiry and need to update all AppPools when User passwords are changed).

So, is this possible?

© Stack Overflow or respective owner

Related posts about c#

Related posts about ASP.NET