How to disable shutdown warning message

G

Guest

hello,
I want to shutdown my XPe system by pushing the power button even if someone
is logged on (active connection through remote desktop). My system is a set
top box and therefore there is any display nor HID on it.
I tried with the automatic reply but it isn't a good solution. For example I
can't install a certificate once auto reply is on. I tried with a shutdown
script (gpedit.msc) but the script is launched a log time after the message
popup.
I'm wondering if there is any registry trick or something else to force
disconnection without prompting any warning message?
Thanks a lot for your help !
 
B

Brad Combs

Hi Papatchel,

Although I don't know how to disable it I can tell you how to make it
disappear after 1 ms. :)

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Windows]
"ShutdownWarningDialogTimeout"=dword:00000001

HTH,
Brad
 
B

Brad Combs

Actually, that might not work on XP, only Server 2003. So, what you may be
able to do is write a small app that handles the power broadcast for a
shutdown and calls InitiateShutdown with the SHUTDOWN_FORCE_OTHERS flag set.
Here is a link to MSDN.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shutdown/base/initiateshutdown.asp

HTH,
Brad

Brad Combs said:
Hi Papatchel,

Although I don't know how to disable it I can tell you how to make it
disappear after 1 ms. :)

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Windows]
"ShutdownWarningDialogTimeout"=dword:00000001

HTH,
Brad

Papatchel said:
hello,
I want to shutdown my XPe system by pushing the power button even if
someone
is logged on (active connection through remote desktop). My system is a
set
top box and therefore there is any display nor HID on it.
I tried with the automatic reply but it isn't a good solution. For
example I
can't install a certificate once auto reply is on. I tried with a
shutdown
script (gpedit.msc) but the script is launched a log time after the
message
popup.
I'm wondering if there is any registry trick or something else to force
disconnection without prompting any warning message?
Thanks a lot for your help !
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top