Not long ago i remember the good old days in school when fooling around with friends computer by shutting them down remotely or locally scheduled if desired.
so let me start by saying this is the easiest trick around and can be very handy (especially when u use a remote computer and its far for a restart .... man so lazy!!!)
OK lets get down to business
first of you need to open your command prompt on windows to do this you can press the Windows key + R  and type: cmd   and then hit enter.
or
go to Start > All Programs>Accessories>Command Prompt
once you're there you should see a black window, and now let the fun begin.






type in the following command:
shutdown -s -t 180






then hit enter. ok that should of got a nice looking window that you canot cancell even if you try. jejeje woried  ok ok i'll show you how to stop it. type in shutdown -a. and yup that's the only way to stop it.
ok ok so lets make thing interesting so you are connected to the network and you whish to perform a remote shutdown so here is how to do it get your friends computer name or IP works both ways. and type shutdown -s -t 1 -m "Here comes the computer name"
and if you are using the ip forget the so it would be shutdown -s -t 1 -m "IP address here"
great now that you understand how it feel like a ninja. let me explain you how to play arround with the commands
so:
shutdown -s (shutdown) -t(time in seconds)
and you can add the following


Usage: shutdown [/i | /l | /s | /r | /g | /a | /p | /h | /e] [/f]
[/m computer][/t xxx][/d [p|uxx:yy [/c "comment"]]
No args    Display help. This is the same as typing /?.
/?         Display help. This is the same as not typing any options.
/i         Display the graphical user interface (GUI).
This must be the first option.
/l         Log off. This cannot be used with /m or /d options.
/s         Shutdown the computer.
/r         Shutdown and restart the computer.
/g         Shutdown and restart the computer. After the system is
rebooted, restart any registered applications.
/a         Abort a system shutdown.
This can only be used during the time-out period.
/p         Turn off the local computer with no time-out or warning.
Can be used with /d and /f options.
/h         Hibernate the local computer.
Can be used with the /f option.
/e         Document the reason for an unexpected shutdown of a computer.
/m computer Specify the target computer.
/t xxx     Set the time-out period before shutdown to xxx seconds.
The valid range is 0-315360000 (10 years), with a default of 30.
If the timeout period is greater than 0, the /f parameter is
implied.
/c "comment" Comment on the reason for the restart or shutdown.
Maximum of 512 characters allowed.
/f         Force running applications to close without forewarning users.
The /f parameter is implied when a value greater than 0 is
specified for the /t parameter.
/d [p|uxx:yy  Provide the reason for the restart or shutdown.
p indicates that the restart or shutdown is planned.
u indicates that the reason is user defined.
If neither p nor u is specified the restart or shutdown is
unplanned.
xx is the major reason number (positive integer less than 256).
yy is the minor reason number (positive integer less than 65536).


so lets say i want to restart my computer so i and display a message "Well lets restart in T - 30 seconds"  i would type: shutdown -r -t 30 -c "Well lets restart in T - 30 seconds"
Ok that that you have mastered that you can even directly type it on the run screen you can get this screen by pressing the windows key + R  and type it right there as soon as u hit enter you will get the same result.


great so one more thing i would like to mention is you need administrator rights on the computer....but there are ways to work around that i will later on show... if u guys like it