Board index » delphi » Shutting down a locked NT Server

Shutting down a locked NT Server

Hi

I'm writing a simple TCP/IP remote control program for a Windows NT Server
in Delphi 4. All the features of my program are working properly except for
one: remote shutdown. I want to be able to shut down the remote server when
it is locked (i.e. Ctrl+Alt+Del --> Lock Workstation). Unfortunately, my
program can shut the server down successfully when the machine is unlocked,
but when it's locked nothing happens at all. I'm using an ExitWindowsEx API
call after using AdjustTokenPrivileges to give shutdown privileges to the
program. Can anyone suggest how I might modify my program to allow shutdowns
when the machine is locked?

Cheers

Stu

 

Re:Shutting down a locked NT Server


Im pretty sure I remember reading Microsoft documentation that said this is
strictly impossible

but there are ways that u can unlock an NT though so u might want to look
into them

--
Dan

Quote
Stu wrote in message <9tkbf3$8k...@newsg2.svr.pol.co.uk>...
>Hi

>I'm writing a simple TCP/IP remote control program for a Windows NT Server
>in Delphi 4. All the features of my program are working properly except for
>one: remote shutdown. I want to be able to shut down the remote server when
>it is locked (i.e. Ctrl+Alt+Del --> Lock Workstation). Unfortunately, my
>program can shut the server down successfully when the machine is unlocked,
>but when it's locked nothing happens at all. I'm using an ExitWindowsEx API
>call after using AdjustTokenPrivileges to give shutdown privileges to the
>program. Can anyone suggest how I might modify my program to allow
shutdowns
>when the machine is locked?

>Cheers

>Stu

Other Threads