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 \\computername /l /a /r /t:xx “msg” /y /c
shutdown /l /t:10 “The computer is shutting down” /y /c
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 \\192.168.1.2 -t 10 -f -u Administrator -p Password