Shutdown Windows Automatically via Command Line

Shutdown computer with cmdDid you know Windows can be shut down via command prompt! Yeah of course you did just that you might not be familiar with the exact parameters which trigger this desired action right! But why on earth would anyone want to shutdown Windows with command prompt where there is much easier option by pressing shutdown button in start menu. Well here is the answer.

Open command prompt and type in this:

To shutdown computer type shutdown -s
To restart computer type shutdown -r
To logoff computer type shutdown -l
To override computer from shutting down once a call has been made type shutdown -a. Press enter and if you were quick enough you will prevent disaster. Wait for the confirmation message to see if you were successful.

Share/Save/Bookmark

6 Comments:

cheap computers on May 27, 2009 1:45 AM said...

WOW...Great info, i will try if it works on my pc.

Be James said...

Thomas, is there any trick for setting the timer for shutting down in cmd? The default shutdown time is "less than a minute" -i wish i could make the timer longer or shorter...:(

Thomas on May 27, 2009 9:37 AM said...

Hi there Be James.
I have to be honest and tell you that your questions is beyond my knowledge. I suspect this is possible by engaging task scheduler via CMD.
However if you want to schedule shutdown timer to a longer period I know of an excellent free third-party program, that will do the job for you and much more than just scheduled shutdown.
Get it here
Shutter

SATISH - Technotip.org on May 29, 2009 9:15 AM said...

@Be James,

It is possible to set the timings by using .bat file, which uses the same command. It has an option -t (which mean time). By specifying the time alond with -t option you can set the shoutdown timings..if you want to do it using a .bat file automatically then you can refer to this article @ http://technotip.org/notepad-bat-file-shutdown-windows-xp

Thomas on May 29, 2009 10:55 AM said...

Thanks Satish for explanation.

Be James said...

Thanks to SATISH for this brilliant tip and to Thomas for approving the post!

Post a Comment

 

Copyright © pcterritory.net 2009 - 2010