Monday, April 20, 2009

How to remotely shutdown computers using windows

What is it?

This is a tool that can accessed through command prompt, a batch file or you can just use the dialogue box to automate the whole process. You can even program it to shutdown certain computer at certain times on certain days via the batch file option. If you want to know the catch here it is: it only works on server linked computers. The good news is that you can have fun shutting down and restarting the computer of your classmates and coworkers.
_____________________________________________________________________

The Dialog Box/ window method.

1. Start out by going to Start>Run then type shutdown -i which will bring up the command prompt window in addition to a window that looks like this


2. Hit the add computers button. Then a small window like the one shown below should appear.


3Add the name of the computer you want to shutdown. This can be found by right clicking the computer button and going to properties. Then look in the computer name tab and copy and paste in the full computer name.

4. under what you what this computer to do you can tell it to either restart, log off or shutdown

5. you can then select how many seconds before log off to warn the user (0bviously if you want to make it a nice surprise select 0)

6.Then click OK
____________________________________________________________________
The command prompt version

1. open command prompt
2. type shutdown
3. then type the switch you want to use

The Switches

The shutdown command has a few options called switches. You can always see them by typing shutdown -? in the command prompt if you forget any of them.

-i: Display GUI interface, must be the first option
-l: Log off (cannot be used with -m option)
-s: Shutdown the computer
-r: Shutdown and restart the computer
-a: Abort a system shutdown
-m \\computername: Remote computer to shutdown/restart/abort
-t xx: Set timeout for shutdown to xx seconds
-c “comment”: Shutdown comment (maximum of 127 characters)
-f: Forces running applications to close without warning
-d [u][p]:xx:yy: The reason code for the shutdown u is the user code p is a planned shutdown code xx is the major reason code (positive integer less than 256) yy is the minor reason code (positive integer less than 65536)

_____________________________________________________________________

The Batch File Version

1. Open notepad
2. type any of of switches in the below form

shutdown –m \\computer1 –s
shutdown –m \\computer2 –s
shutdown –m \\computer3 -s


3. save as shutdown.bat
4. run when ready

No comments: