How to Shut down PC remotely using the command line?

May 23rd, 2009

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

Example:
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"]

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

Enjoy!

Entry Filed under: English Blog

1 Comment Add your own

  • 1. KattyBlackyard  |  June 14th, 2009 at 9:54 pm

    Great post! I’ll subscribe right now wth my feedreader software!

Leave a Comment

Required

Required, hidden

Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Trackback this post  |  Subscribe to the comments via RSS Feed


Search

Calendar

May 2009
M T W T F S S
« Apr   Jul »
 123
45678910
11121314151617
18192021222324
25262728293031

Posts by Category

Posts by Month


Latest Posts

Interesting Websites:

Most Recent Posts

Syndication

Management

Stats:
eXTReMe Tracker