Copyright © 2000-2004 Mark Russinovich
Last Updated: March 8, 2004 v2.3

Introduction

PsShutdown is a command-line utility similar to the shutdown utility from the Windows 2000 Resource Kit, but with the ability to do much more. In addition to supporting the same options for shutting down or rebooting the local or a remote computer, PsShutdown can logoff the console user or lock the console (locking requires Windows 2000 or higher). PsShutdown requires no manual installation of client software.

Installation

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

PsShutdown works on NT 4.0 and higher.

Usage

You can use PsShutdown to initiate a shutdown of the local or a remote computer, logoff a user, lock a system, or to abort an imminent shutdown.

usage: psshutdown-s|-r|-h|-d|-k|-a|-l|-o [-f] [-c] [-t nn|h:m] [-m "message"] [-u Username [-p password]] [\\computer[,computer[,...]]
-? Displays the supported options.
-a Aborts a shutdown (only possible while a countdown is in progress)  
-c Allow the interactive user to abort the shutdown  
-d Suspend the computer
-f Forces all running applications to exit during the shutdown instead of giving them a chance to gracefully save their data
-h Hibernate the computer
-k Poweroff the computer (reboot if poweroff is not supported)
-l Lock the computer
-m This option lets you specify a message to display to logged-on users when a shutdown countdown commences
-o Logoff the console user
-r Reboot after shutdown
-s Shutdown without poweroff
-t Specifies the countdown in seconds until the shutdown (default: 20 seconds) or the time of shutdown (in 24 hour notation)
-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 computer or computers specified. If this is omitted, the local computer defaults.

PsTools

PsShutdown is part of a growing kit of Sysinternals command-line tools that aid in the adminstration of local and remote Windows NT/2K systems named PsTools.

Download PsShutdown (14KB)

Download PsTools



Back to Top