I've tried using the Cygwin shutdown-1.4 from an ssh session and it doesn't seem to do anything. The call to ExitWindowsEx doesn't appear to fail, but nothing happens after the "WARNING!!!..." message is displayed. I have verified that the system can be rebooted from ssh if InitiateSystemShutdown is called instead of ExitWindowsEx and this appears to be consistent with the ExitWindowsEx description:
The ExitWindowsEx function returns as soon as it has initiated the shutdown process. The shutdown or logoff then proceeds asynchronously. The function is designed to stop all processes in the caller's logon session. Therefore, if you are not the interactive user, the function can succeed without actually shutting down the computer. If you are not the interactive user, use the InitiateSystemShutdown or InitiateSystemShutdownEx function. jim -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/