How to Shut down PC remotely using the command line?

Recently I came accross a question on how to shut down a remote computer remotely using only the dos prompt (Win 2k or windows computer with no terminal services installed).
There are basically two ways how to go about it:…

You can either use Shutdown.exe command-line tool, which is available on the Microsoft Windows 2000 Resource Kit CD-ROM.
Or you can use PsShutdown.exe which is also a command-line utility similar to the shutdown utility from the Windows 2000 Resource Kit, but with the ability to do a little more.

I don’t want to waste your time by going into many details, so here is how to shut down remote computer using Shutdown.exe and how to do so using PsShutdown.exe:


Shutdown.exe Syntax:
shutdown \\computername /l /a /r /t:xx “msg” /y /c

shutdown /l /t:10 “The computer is shutting down” /y /c


PsShutdown.exe Syntax:
psshutdown [[\\computer[,computer[,..] | @file [-u user [-p psswd]]] -s|-r|-h|-d|-k|-a|-l|-o [-f] [-c] [-t nn|h:m] [-n s] [-v nn] [-e [u|p]:xx:yy] [-m “message”]

psshutdown.exe \\ -t 10 -f -u Administrator -p Password


Facebook Comments