Subscribe to Windows IT Pro
September 12, 2001 12:00 AM

JSI Tip 4086. PsShutdown command-line freeware works on both the local and remote computers.

Windows IT Pro
InstantDoc ID #75395
Rating: (0)


"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] -r|-h|-d|-k [-t nn][-m "message"]
                   [-f -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



Related Content:

ARTICLE TOOLS

Comments
    There are no comments to display. Be the first one!
You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.