Tricks and tips: Shutdown in 3, 2, 1…

Intern-City
Intern-City
Published in
3 min readMay 31, 2018

If you’re a movie lover like me, or a late-nighter or you just use your laptop a lot without shutting it down. This is for you.

Won’t it be nice to have your laptop automatically shut down after a specified time, so you’ll never sleep off with your laptop on or find a laptop with a flat battery just because you forgot to shut it down. Well, I have good news for you.

You can.

There are two methods:

  1. Using the command Line: To automatically set a shutdown timer after a specified time, run the following commands.

a. Press windows + R

b. Type shutdown /s /f /t time /c ‘I’m shutting down now sweetheart’..

c. /s — this stands for the type of shutdown you want. S is for shutdown and h is for hibernate.

d. /f — this is optional and it’s for when you want to force shutdown.

e. /t — stands for time

f. Time- specify the time in seconds

g. /c “comment” — This overrides the in-built comment and specifies a comment/message you’d like to pop up before shutdown.

h. A pop-up will come up.

i. To cancel, press windows + R and type the command shutdown /a.

j. And voila, you’ll never sleep off without shutting down.

For example, to shutdown in 3mins, the command will be:

To set a predetermined time frame, like maybe every 12 midnight or 3 am, these methods are for you.

2. Using the task scheduler:

a. Search and open the task scheduler app

b. Click on create basic task.

c. You can type the name of the task and description of the task. Click on Next

d. In the trigger tab, chose the time frame for the task.

e. Select the time you want

f. In the action tab, chose the start a program option

g. In the finish tab, select the file you want to run. In this case, it’ll be the shutdown file

h. Click on finish to save

I hope you found this useful. Stay tuned for more tricks and tips.

intern004

--

--

Intern-City
Intern-City

A free spot for the interns at Genesys tech hub to express themselves and their ideas. www.genesystechhub.com