LAN Shutdown Manager - Windows '95/'98/NT
-----------------------------------------
  Copyright (C) 1998 William Garrison 
  This program is free software; you can redistribute it and/or modify it
  under the terms of the GNU General Public License as published by the Free
  Software Foundation; either version 2 of the License, or (at your option)
  any later version.  This program is distributed in the hope that it will be
  useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
  Public License for more details.

Now that that's over with:
--------------------------
  This program allows you to run a very slim client(24k on disk) on a Windows
workstation that allows remote shutdown of the machine.  The shutdown manager
is command-line driven, with a few simple options to control shutdown of
specific machines, broadcast, warnings, and scripting.
  These instructions are intended for a LAN administrator, so concepts and
terms are NOT explained.

How to work things:
-------------------
  Load the client program on each workstation you wish to have control over. I
suggest putting this in the load= or run= lines in win.ini.  Why not the
startup group?  Because the program will survive a logout, so if the someone
were to log out, then log in, Windows will run the client twice and give the
user an error.  I can remove that, but it's a pain.
  Now, install the manager onto another machine.  Do NOT run the client there,
or you are likely to shut yourself down accidentally.  Open up a command 
prompt and try a few things:

MANAGER                         List the running shutdown clients
MANAGER REBOOT                  Will reboot all machines
MANAGER REBOOT *                Same thing
MANAGER SHUTDOWN computer-name  Shutdown a single computer
MANAGER SPEAK                   Display an annoying message
MANAGER QUIT                    Close the shutdown client
MANAGER /?                      Useful help information

The commands are case-sensitive -- use all caps!

Advanced:
---------
  By default, the client runs on UDP port 0x1234 or 4660.  In the event this
comflicts with another application, you can run CLIENT <port #> to use an
alternative port.  This is probably not necessary.  If you do so, you must
tell the manager the port as well.  Such as MANAGER REBOOT * <port #>.
  You can create 'shutdown groups' by using different ports.  For example,
if the accounting computers go down at 5:30, but the managers stay until
7:00, you can run one set on port 555 and another on port 666 (nothing
intended there).  Then simply execute MANAGER SHUTDOWN * 555 to shut down
just that group.
  The tool is very simple, but with some funky batch files can be rather
interesting.  The manager returns an errorlevel back to the shell.  This
way, a batch file can check to see if everyone responded.  Look at
DOWNALL.BAT for a good example.
  The best use for this would be scheduled network shutdowns.  Under NT, the
AT command would allow you to execute this at a certain time each day.  Of
course, the late night programmers could get very annoyed...
  Note that the POWEROFF command only works on machines with appropriate
hardware.  For some reason, if they do not support it, windows logs them
out instead of shutting them down. (why!)

Known bugs/Missing features:
----------------------------
  I think if you send the warning message, then try to shutdown, it hangs.
  Try it.

  It would be nice to know who DIDN'T respond, not just who did.  You can
  kinda script that by parsing the output(see batch file examples included)

  This needs major testing -- right now I've only used it on one machine
  (Bad, I know)  I am assuming it will broadcast properly and catch all the
  broadcast messages.  Somebody tell me.

Other great moby disk products!!!
---------------------------------
* The Flaming Moose screen saver
* Moby's NetSuite -- smallest HTTP,SMTP server in existence!
* Windows Background Changer
* MouseHUA!  -- Have your computer make ninja sounds while you move
                the mouse! The most annoying program on the net!
* Full source code to almost everything!!! (including this soon)



Moby Disk a.k.a. William Garrison
mobydisk@home.com
http://moby.ml.org
http://members.home.com/mobydisk
