Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Remote Shutdown Command

Status
Not open for further replies.

dison

Technical User
Apr 20, 2005
20
0
0
GB
Hello all!

Does anyone know how to issue a remote shutdown and a remote logoff command to another computer on my network?

Please help!

David.
 
To reboot \\remote_computer:

shutdown -r -m \\remote_computer

To shutdown \\remote_computer:
shutdown -s -m \\remote_computer


Shutdown
Allows you to shut down or restart a local or remote computer. Used without parameters, shutdown will logoff the current user.

Syntax
shutdown [{-l|-s|-r|-a}] [-f] [-m [\\ComputerName]] [-t xx] [-c "message"] [-d[p]:xx:yy]

Parameters
-l
Logs off the current user, this is also the defualt. -m ComputerName takes precedence.
-s
Shuts down the local computer.
-r
Reboots after shutdown.
-a
Aborts shutdown. Ignores other parameters, except -l and ComputerName. You can only use -a during the time-out period.
-f
Forces running applications to close.
-m [\\ComputerName]
Specifies the computer that you want to shut down.
-t xx
Sets the timer for system shutdown in xx seconds. The default is 20 seconds.
-c "message"
Specifies a message to be displayed in the Message area of the System Shutdown window. You can use a maximum of 127 characters. You must enclose the message in quotation marks.

There are by the way several great freeware utilities for this. For example:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top