"Windows NT/2K does not come with a built-in command-line shutdown command. However, both the Windows NT 4 and Windows 2000 Resource Kits come with shutdown, a program that you can use to shutdown local and remote computers. PsShutdown is a clone of the Resource Kit shutdown tool, providing you the same options and ability to shutdown, and optionally reboot, local and remote Windows NT/2K systems.

Installation

Just copy PsShutdown onto your executable path, and type PsShutdown with command-line options defined below.

PsShutdown works on NT 4.0, and Win2K.

Usage

You can use PsShutdown to initiate a shutdown of the local or a remote computer, or to abort an imiment shutdown.
PsShutdown v2.11 - local and remote system shutdown/lock
Copyright (C) 2000-2003 Mark Russinovich
Sysinternals - www.sysinternals.com

usage:
psshutdown \[-u Username \[-p password\] <a href="/article/tips/jsi-tip-4086-psshutdown-command-line-freeware-works-on-both-the-local-and-remote-computers--75395?topic=-s">-r|-h|-d|-k \[-t nn\]\[-m "message"\]
                   \[-f</a> -a | -l | -o\] \[\\computer\]
   -a          Abort a shutdown (only possible while countdown is in progress)
   -d          Suspend the computer
   -f          Forces running applications to close
   -h          Hibernate the computer
   -k          Poweroff the computer (reboot if poweroff is not supported)
   -l          Lock the computer
   -m          Message to display to logged on users
   -o          Logoff the console user
   -r          Reboot after shutdown
   -s          Shutdown without poweroff
   -t          Specifies countdown in seconds until shutdown (default is 20)
   -u          Specifies optional user name for login to remote
                computer.
   -p          Specifies optional password for user name. If you omit this
                you will be prompted to enter a hidden password.
   \\computer  Shutdown the remote computer specified