SHUTDOWN -s -t 60

Introduction: SHUTDOWN -s -t 60

About: For now, See Interests!

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

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

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!

Be the First to Share

    Recommendations

    • Magnets Challenge

      Magnets Challenge
    • Raspberry Pi Contest 2020

      Raspberry Pi Contest 2020
    • Wearables Contest

      Wearables Contest

    34 Discussions

    0
    Tapugao123
    Tapugao123

    2 months ago

    can somebody please tell me how do i set my hp laptop to automatic shutdown at 9:30 pm

    0
    junaidcv
    junaidcv

    2 years ago

    hi bro i want to set timer (approximately 5 mto 10 mints) when internet disconnect and when during timer if internet again connect my pc should keep on i mean when internet connect the timer auto off. please upload software or script .i hope you will do for me and peoples

    0
    ProgD
    ProgD

    3 years ago

    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
    0
    PriyaS6
    PriyaS6

    4 years ago on Introduction

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

    through folder command

    0
    Jakema
    Jakema

    Reply 4 years ago

    do bat file

    0
    HulkSmash990
    HulkSmash990

    4 years ago

    What do you type to do it to someone else computer

    0
    Jakema
    Jakema

    Reply 4 years ago

    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

    0
    avs2020
    avs2020

    4 years ago on Introduction

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

    0
    chrisking8613

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

    0
    WaterLemon7
    WaterLemon7

    8 years ago on Introduction

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

    0
    Jthomsonmain
    Jthomsonmain

    12 years ago on Introduction

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

    0
    thermitekonga
    thermitekonga

    12 years ago on Introduction

    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

    0
    thermitekonga
    thermitekonga

    Reply 12 years ago on Introduction

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

    0
    hollasch
    hollasch

    12 years ago

    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.

    0
    seco
    seco

    Reply 12 years ago on Introduction

    you're right, i wanted to reply the same

    0
    mutant
    mutant

    Reply 12 years ago

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

    0
    armindilo
    armindilo

    12 years ago

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

    0
    Bongmaster
    Bongmaster

    Reply 12 years ago on Introduction

    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