This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: reboot, anyone?
- To: arlindo at niteroi dot gsfc dot nasa dot gov (Arlindo da Silva)
- Subject: Re: reboot, anyone?
- From: Geoffrey Prewett <prewett at pacific dot mps dot ohio-state dot edu>
- Date: Fri, 17 Apr 1998 16:03:11 -0400 (EDT)
- Cc: gnu-win32 at cygnus dot com
> I'm looking for a command line, no questions asked, "reboot" utility for
> NT. I'd like to be able to reboot my NT box remotely from a telnet shell.
Try downloading the WinNT 3.51 Resource Kit from Microsoft. It has shutdown.exe
which will do what you want. I should note, though, that I have had problems
where it doesn't actually reboot when the time runs out. I think that if a
user is logged in when the program runs, and logs out before the reboot occurs,
it doesn't reboot. This manifests itself in shares not connecting (giving
"Name not found"-type errors, MS's ftp server refuses connections, etc., since
apparently the system still thinks that it is shutting down.
> It is important that it skips the dialog box as I won't be there to click
> the "OK" button. Can this be done?
shutdown.exe /y
You might also try compiling a quick C program to do it with the API.
I think the command is ExitWindows or something similar.
Geoff Prewett
prewett@pacific.mps.ohio-state.edu
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".