Introduction: SHUTDOWN -s -t 60

How to shut down a computer running Windows from the Command Prompt
by Jared E. Thomson
First off, you need to open MSDos (CMD). Type in the following:
SHUTDOWN
After typeing SHUTDOWN, add the following to the end of the SHUTDOWN Command:
| Text | Action |
| -s | Shutdown and Power off the computer |
| -c "Comment" | Add a comment |
| -t xx | Time before shutdown |
|-a |Abort |
Example:
SHUTDOWN -s -c "Ha Ha, I Shut Down your computer!!!!" -t 60
That will Turn your computer off in 60sec and display the message.
WARNING: After you start this, you can not stop it!!!! (unless you know how.....)

Step 1: Run CMD.exe

Go to Start > All Programs > Acsessories > Command Prompt

Step 2: Type Command

Type "SHUTDOWN" Then add a space. DO NOT PUSH ENTER!!!

Step 3: Special Instructions

Add the following:
-s -c "Your Text Here" -a -t 60
-s Shuts Down the computer
-c " " Adds a comment (Replace Your text here with, well... your text!)
-t Specifies the ammount of time before the Shutdown Starts (60 Seconds)
DO NOT PRESS ENTER!!!

Step 4: Finish

WARNING: YOU CAN NOT STOP THE SHUTDOWN AFTER YOU HAVE STARTED IT!!!!
EDIT: Without this: SHUTDOWN -a
ends the shutdown process.
You can press enter now!
Good Luck!

Comments

author
ProgD made it!(author)2016-06-15

No need to bother so much. Just use a simple program like Multi Timer PC Shutdown Timer

http://progdown.ru/multi-timer/

Shut Down Timer.jpg
author
PriyaS6 made it!(author)2015-04-04

Can some body tell me .. how to generate shortcut of button to shut down system

through folder command

author
Jakema made it!(author)2015-10-28

do bat file

author
HulkSmash990 made it!(author)2015-10-12

What do you type to do it to someone else computer

author
Jakema made it!(author)2015-10-28

just open notepad

write:

@echo_off

pause

echo press any button

pause

-s

-t 60

then just save it as .bat file and send it to someone, then they have to open it and press any button, then it will shut down

author
RumatS made it!(author)2015-08-13

author
avs2020 made it!(author)2015-02-17

@echo off
cd \
shutdown -s -c "Your Display Massage" -t 60

author
chrisking8613 made it!(author)2012-02-18

Such noobish noob nobberish!!!!! Anyways, to really F with someone, create a shortcut with your shutdown command, and drag the shortcut into the "startup" folder in the start menu. Then the shutdown and comment will occur every-single time that the user logs in. (Don't set the timer too short or else you won't have enough time to delete the shortcut from the startup folder when your done screwing with them : ) )

author
WaterLemon7 made it!(author)2011-03-08

na no one nowswhat to do its simple go to stat ont the left hand sie of the computer scre and type in on he serch shutdown -a and the log off wil be cancelled!!!

author
onlyonebowman made it!(author)2008-02-09

to stop it is to go into run and type "shutdown -a"

author
Jthomsonmain made it!(author)2007-09-23

K, sorry all, i have been busy (playing video games and working..... just kidding). I have been working a lot. If anyone wants help with computers stuff, electrical stuff, or anything technological, please come to my forum:
http://jthomsonmain.proboards99.com/

or email me:
jthomsonmain@gmail.com

i am sorry that i cant stay and help everyone, but i feel that i have overextended myself....

author
thermitekonga made it!(author)2007-09-23

what about the -f command? what will happen if they have another program, they will by the way since it's an email attachment and you need to use and internet application to retrieve it

author
thermitekonga made it!(author)2007-09-23

oops, wrong instructable, anyways what's the point of talking to yourself on the computer, SHUTDOWN YOUR SCHOOL IS THE BEST

author
hollasch made it!(author)2007-03-21

Yes, you can abort it. Run "shutdown -a". Let's please not have an instructable for every Windows shell command, particularly when entering the command and "/?" will give you more information than you've listed above.

author
seco made it!(author)2007-06-15

you're right, i wanted to reply the same

author
mutant made it!(author)2007-03-28

Yeah if want to see real DOS scripting check out my guide in shutting down a school.

author
armindilo made it!(author)2007-03-22

let me guess, the next intructable is going to be a knex gun made completely out of single xp shell commands......

author
Bongmaster made it!(author)2007-05-22

no more k-nex guns aaarrgghhh!! seriosly there are far too many and there is no point.. there isnt as many using more readily available stuff. no ones gonna go out to buy k-nex just to make a gun.. and back to the subject at hand.. its more fun to remotely shut down a pc, like your friends pc while they are in the middle of writing an end of term essay :P

author
TheREALdude made it!(author)2007-05-19

hmm...whats a MSDos..i dont create viruses often

author
PYROMan1 made it!(author)2007-04-04

can you shut some one down at a different ip adress and how

author
ongissim made it!(author)2007-03-21

This isn't an instructable, rather how what to type in a command on a command prompt. Besides, this command was already stated in Batch Tutorial - Take 1Batch Tutorial - Take 1.

author
Jthomsonmain made it!(author)2007-03-23

I am sorry, I Didn't realize that someone had already created an Instructable with this information on it.

author
Jthomsonmain made it!(author)2007-03-23

Please, do not be rude about the comments you post! You do not have to be rude to get your point across! I am way more likely to listen to you if you are polite! If you are rude, I will most likely just take it upon myself to do everything in my power to annoy you! Seriously, This website is for the collaboration of ideas, Not the argument of trying to run other peoples lifes for them. Thank you!

author
lemonie made it!(author)2007-03-21

Could you add a step (or two) to describe how to put this in a .bat and have that .bat run upon startup? This could be an annoying prank(?)

author
eviloverlord made it!(author)2007-03-22

Yes, and don't forget to include an image for every keypress you type whilst doing so.

author
Jthomsonmain made it!(author)2007-03-23

Thank you for your comment, but I am currently wraped up in my computer programing work (I have a job codeing for someone...) and I do not have time to take a screen of everything I do. This will be something I have to add later on. Sorry!

author
Jthomsonmain made it!(author)2007-03-23

I will add a step two if you would like, But for now, I will just tell you how to use it in a .bat... -Open up Notepad -Type in the command (ex. SHUTDOWN -s -c "HaHa!" -t 60) -Go To: File>Save -Name file YOURNAME.bat ("*.bat") Good Luck!

author
wperry1 made it!(author)2007-03-21

I agree that an Instructables for every windows command would really clutter Instructables with much info that is available elsewhere. That being said, this is a really useful command if you are on RDP to your XP Pro system since shutdown is missing from the start menu. You can also add "-m \\ComputernameOrIP " and shut down a remote system.

author
twisted made it!(author)2007-03-22

the -m (ip adress) did not work, :( i got a "access is denied" error. anyway to fix this? (im tryin to shut down another comp on my home network.)

author
eviloverlord made it!(author)2007-03-22

To access the shutdown dialog from a remote desktop connection: 1. Press WIN+D or WIN+M to hide any visible windows. 2. Press ALT+F4 to show the shutdown dialog.

author
PetervG made it!(author)2007-03-21
author
skot123 made it!(author)2007-03-21

I agree that we don’t want instructables created for every single command. I personally use “shutdown /r” quite regularly to reboot a computer that I am administering remotely. (IE…I am using remote desktop to connect to the machine and I want to reboot after installing a patch.)

About This Instructable

450,994views

11favorites

License:

Bio: For now, See Interests!
More by Jthomsonmain:SHUTDOWN -s -t 60
Add instructable to: