Hi There. There is a lot of post about reboot windows.
I need to reboot my server with a ASPX application and the code must
run on server side.
Y do all that people says: (open a process token, Ajusting token
privileges, etc...)
The question is that the code works fine in Windows XP but not In
Windows 2003 Server.

Theres someone that know how to do the same in Win 2003 Server ? Is
there a security issue that i missing ?

--------------------------------
From: Condor

Re: Reboot Windows 2003 Server With ExitWindowsEx by Josip

Josip
Wed Nov 03 15:48:33 CST 2004

> Hi There. There is a lot of post about reboot windows.
> I need to reboot my server with a ASPX application and the code must
> run on server side.
> Y do all that people says: (open a process token, Ajusting token
> privileges, etc...)
> The question is that the code works fine in Windows XP but not In
> Windows 2003 Server.

> Theres someone that know how to do the same in Win 2003 Server ? Is
> there a security issue that i missing ?

Here is full code for that in VB60. Just convert declarations
to .NET syntax. Part that you need is in AdjustToken sub.
Let me know if you need further help.

http://www.jmedved.com?findbyname=shutdown

--
Pozdrav,
Josip Medved, MCSD
http://www.jmedved.com