June 12, 2008

Abort Shutdown [Basics]

Hmm we all know the easiest way to shut down your computer is to type (shutdown –s) in to cmd “command” and that will give a message that the computer will shutdown and you have 30 seconds. But if u just type (shutdown -a) it will abort the shutdown but there are other commands. ill just start off doing the easiest 1
Shutdown –s
it will shutdown your computer in 30 seconds and display a message
shutdown –s –t 40
it will shutdown in 40 seconds but you can only go up to 86400 (24 hours) but if you make it 0 it will show no message and just shutdown
shutdown –s –c ”haha the computer is going to shutdown”
it will shutdown with a message in a box under the time
shutdown –l
it will just log you of the computer
shutdown -i
it will display the GUI shutdown window
shutdown –r
will restart the computer
shutdown –a
it will abort the shutdown
shutdown –f
will force all running applications to close I m not much confident about how to use (shutdown –d) so I just grab this of the net

-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)

and now the fun stuff starts to begin if you still go to school or uney with the "-m" command

the –m command will let you shut down computers on the network and all you need is the ip address or the computer name (its found in the system info in the "computer name" tab)(right click on my computer and go to properties and you will see "computer name”)

once your have the ip or the computer name just type (shutdown –s –m \\”ip/computer name” in to cmd but you can use all the command with it but you carnet use “-l” over the network it doesn’t let u

and now to tern it in to a file so who ever opens it, it will make the computer shutdown just type what ever you want the computer to do in to a notepad file and save it as a .bat file(go to save as and (what ever name u want) and type .bat at the end)

No comments:

Post a Comment