Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: Server reboot


Message #1 by "Nick TheGreek" <nick_bitounis@c...> on Thu, 16 Jan 2003 08:26:22
Hi all,

   I'm looking for a way to reboot a server from within an ASP.NET 
application.

   Q1. Can this be done without changing the account under which the 
ASP.NET worker process is launched (processModel of the machine.config 
file) ?
   Q2. If there's a class in the CLR that can do this, I don't know what 
that is. So, I was thinking something along the lines of ExitWindowsEx and 
AdjustTokenPrivileges API calls. Any other ideas ?

Cheers,
NTG

  Return to Index