SEARCH

The How-To Geek Forums Have Migrated to Discourse

How-To Geek Forums / Tutorials

TUTORIAL: How to shutdown computer at a certain time

(9 posts)
  • Started 4 years ago by kake
  • Latest reply from kake
  • Topic Viewed 3542 times

kake
Posts: 245

Do you ever wanted to listen to music before you go to sleep or run a virus scan, but you don't want to leave your computer running the whole night? Then here is a perfect tutorial for you!

1. Type cmd in start menu search
2. Right-click on cmd and click on "Run as administrator"
3. Then type the following: at hh:mm shutdown -s (replace hh with hours and mm with minutes when you want then computer to shut down)

Tip: you can replace -s with -r if you want to restart or -h if you want to hibernate.

I hope you like this tutorial :)

Posted 4 years ago
Top
 
hatryst
Posts: 3482

Hey kake, that's nice, thanks!
Will it be a FORCED SHUTDOWN? (so that if i have a few tabs open in firefox, it doesn't interrupt the shutdown process) ?

Posted 4 years ago
Top
 
kake
Posts: 245

it will be a forced shutdown. You will get a warning before the shutdown.

Posted 4 years ago
Top
 
kake
Posts: 245

If you want to shutdown the computer without warning then add -f to the command.

Posted 4 years ago
Top
 
kwisj
Posts: 73

Hi All
Or rather than do all that you can use this piece of freeware: http://www.snapfiles.com/get/shutter.html
With all sorts of ather options included
;-)
Kwisj

Posted 4 years ago
Top
 
kake
Posts: 245

Thank you kwisj for this tip! But it's cooler to do this with command prompt :)

Posted 4 years ago
Top
 
Niks
Posts: 658

@ kake, Do we have to set the time according to our current time or we have to enter the hours(like countdown) ??

Nikhil.

Posted 4 years ago
Top
 
hatryst
Posts: 3482

It is supposed to be a countdown, i guess...

Posted 4 years ago
Top
 
kake
Posts: 245

So, if you want the computer to shutdown at 10 pm, you have to set the command to: at 22:00 shutdown -s. It uses the 24-hour clock system.

Posted 4 years ago
Top
 



Topic Closed

This topic has been closed to new replies.