Commentary Logo
Japan Island disputes in SE Asia    World War III Alarm Anti-Islam video and anti-US sentiment    Skull Say no to brainwashing

       peace and anti-war Israel Iran strike imminent    sanctions as a result of nuclear tests Sanctions on Iran and workarounds    black lightning bolt India's massive blackout

Snapshots of news
Gearheads and mastheads
Home  •  About this site  •  How did we once fight corruption in colonial Hong Kong?
 •  Historical US administrative thoughts  •  USA versus colonial Hong Kong
 •  Anti-corruption review of Nigeria  •  Procurement monitoring in Nigeria
 •  Syndicated news  •  Usman's blog  •  Anti-graft news  •  Socialist news

 Tuesday, August 20 2019 4:59am Hongkong Time

Posted Dec 27, 2012

Back to Blog Index   

How To Automatically Shutdown, Restart Or Logoff Windows At A Specific Time

Do you like scheduling each and every thing in your life whether it’s a simple meet up with a friend or  logging off your computer system at the lunch time? Let your computer sleep when you are inactive but it should wake up when you enter the office room? Well, we can easily schedule shut down, restarts or logging off Windows automatically at a specific time. All it requires is a one time effort of creating and scheduling it. Let’s start step by step.

Shutdown computer at a specific time

Go to Start -> Control Panel -> System and Security

Under System and Security look for the Administrative Tools -> Schedule Tasks

Administrative tools scheduled tasks

This will open the task scheduler. Our aim is to automatically shut down computer at a specific time and we will schedule a task to do so.

You can also directly open the task scheduler by going to Run –> Taskschd.msc

Go to Actions -> Create Basic Task

Note that ‘Create Task’ is used to perform multiple actions simultaneously. Give a suitable name and description to the task and click next.

Task scheduler

It will take you to ”Task Trigger’  and asks how often do you want to perform that task.

Select Daily and set your timings. We have set it to 12:00 AM at night. You may also synchronize it across time zones if you travel often.

Click Next and select the action you want to take.

Select ‘Start A Program’.

Enter the script that will shutdown the computer. It is a simple run command

“shutdown -s”

Start a program at scheduled intervals

Clicking on the next button will take you to the task summary which describes the task name, program to be executed and its trigger. Click Finish to activate the task.

Finish task wizard

You can now re-check your activated tasks in the ‘Active Tasks’ list.

Restart Automatically at Specific Time

Restart computer automatically by performing the same series of steps as discussed above. However, run the following command at the scheduling task.

“shutdown -r”

Log Off Automatically at Specific Time

Yes, you guessed it right. A simple command in the script is enough to tell the system that the user wants to logs off.

“shutdown -l”

Hibernate Automatically at Specific Time

Similarly you can also schedule hibernation of your system following the same procedure.But this time, type in the following script in the ‘start program’ bar.

“shutdown -h”

Usually we don’t need hibernation as a schedule task rather it should be event driven i.e. whenever you leave computer for a specific time period it should be wise enough to fall asleep. To customize these settings:

Go to  Start-> Control Panel -> System and Security

Power Options ->Change when the computer sleeps

Power Options CP

There are three power plans Balanced, Higher Performance and Power Saver. We use ‘Balanced’ plan as default so it is displaying adjustable options that can be used to set the sleep time, display dim and off timing.

Click on the ‘Change advanced power settings’. With the help of advanced options you can customize all power plans and specify a lot of stuff distinctly. Although , you can change it to ‘No’ but make sure that you ask for a password whenever a computer wakes up so that unauthorized access is prevented.

Power Settings Sleep Option

In the Advanced Options window, scroll down to find Sleep -> Hibernate After.

Set your hibernation timings in minutes when you are using system on battery or plugged in.

Apply the changes and select OK.

Power Options

Debug and Edit Scheduled Tasks

We just realized that one of our task did not execute on time…how to debug it now? Let’s start ‘Task Scheduler’ to dig out the problem and fix it.

Go to Start -> Search Bar -> Task Scheduler

In the Active Tasks Section, scroll the list and find your required task. We are trying to change some settings in our PC Auto Shutdown task.

Double click the task name and it will display complete information about it.

To edit the conditions and settings, go to the properties in the right side panel.

A property window will open. We made an error in the action script so we went to ‘Action’, clicked edit and removed the error.

Edit task scheduler

There are many tools available which offer the automatic scheduling of shut down, restart and  log off options etc. Some of which are as follows:


inTimer Management


PowerSave Lite

Auto Shutdown Net

Shutdown, Restart, Logoff, Hibernate PC after a specific amount of time

If you want to shutdown the PC after a specific amount of time, you can do so by using the following command:

“shutdown -s -t 30″

Where -s specifies that the system has to shutdown, -t means we are defining a time interval and 30 means the system should shutdown after 30 seconds. For restart, the following command will be used:

“shutdown -r -t 30″

For logoff:

“shutdown -l -t 30″

And for hibernation:

“shutdown -h -t 30″

If anything goes wrong and you want to cancel the count down or scheduling of the shutdown command immediately, just issue the following command:

“shutdown -a”

How To Automatically Shutdown, Restart Or Logoff Windows At A Specific Time is a post from: Technize.NET

The post How To Automatically Shutdown, Restart Or Logoff Windows At A Specific Time appeared first on Technize.NET.

Back to Blog Index   

© Usman Khurshid. Reproduced with permission of the copyright owner.










Usman Khurshid is a network consultant who works in a mixed environment of Windows and Linux platforms. He studies about the latest advancements in computer technology and shares his views on this technology blog.

Email Usman at usman {at} technize {dot} com

Commentary and reflection pages by Raymond Cheng, PhD DPA FRSA

  Main • Commentary   Special Foci • Syndicated News | Corruption | Socialism | GuanXi

  Health Related • Traditional Chinese Medicine   Others • OXLL

© 1997-2018 The Commentary, Office of Dr Raymond Cheng. All rights reserved. Copyright of selected news articles, the headlines and logos belongs to the respective entities. Read disclaimer

Digital platform powered by Wyith Limited, Wyith Institute. Wyith Limited and Wyith Institute are associated businesses operated by the Office of Dr Raymond Cheng • Dr Raymond Cheng & Partners Ltd and The Commentary Ltd.

Home  •  About this site  •  How did we once fight corruption in colonial Hong Kong?
 •  Historical US administrative thoughts  •  USA versus colonial Hong Kong
 •  Anti-corruption review of Nigeria  •  Procurement monitoring in Nigeria
 •  Syndicated news  •  Usman's blog  •  Anti-graft news  •  Socialist news

Contact the editor at raymond {dot} cheng {at} kellogg {dot} oxon {dot} org

The RendezvousBuildersCommentatorsContributorsReadersResearchers
Reflection Pages • Miscellaneous Stuff
The difference between instant evaluation and improving recognition – November 20
Freddy Krueger revisited: Politically correct education? – October 23
From the evaluator's perspective: Justified conclusions and decisions – October 8
Online and distance-learning degrees from the evaluator's perspective – September 25
The moment fake degrees turned recognized and appraised – September 9

Photo credits for top title bar, from left to right: Iza H (Work), Lukasz Gumowski (Blue balls), Marcin Bania (Smiling and naked), Lautaro Gonda (Milan station), Jan Abt (Girl taking a picture), Daniel Tang (Hot switch), Barbara Henry (Moriah reading), Ralf Herrmann (Checkmate II), Marko Roeper (Led #4), Ian Russell (Girl in downtown LA).
Note: Animated GIF graphics and clipart obtained from,,, and Sketches, cartoons and other handdrawings courtesy of Alice-the-Artist.

Special Alert! This is *NOT* the American Jewish Committee's Commentary Magazine! Special notice! This is not the American Jewish Committee's Commentary Magazine nor are we in any way affiliated with them. To visit AJC's magazine, please go to instead, thank you for your attention.
Memo with pin Technical memos for members
Receiving using Gmail | Sending using Gmail
0x800ccc0e | 0x800ccc19 | 0x800ccc79

This site is best viewed with Microsoft® Internet Explorer 6.0 or above, minimum 1024x768 16M color-depth resolution. The Commentary Group and its personnel do not endorse external sites and are not responsible for the content of these websites. All external sites will open in a new browser window.

COUNT ON THE STATISTICS  100% Towels (c) Daniel Chittka
Photo © Daniel Chittka

This new section contains some interesting statistics in bribe and corruption, please check back for more as we pile up our numbers!

It's statistics time!  Using n-gram: kickback, graft, bribe and corruption - Comparison of their historical occurrences from 1810 to 2009 A.D.

  The word guanxi (collocation) and meanings of bribe: Deeply rooted, disgusting, sad endings

Search for a domain name - no obligation!
 enter a name, word or phrase
 choose an extension
 click go!
Looking for a good book (c) Doug Logan
Photo © Doug Logan
tagged by area of interestBY AREA OF INTEREST
Pragmatics: Politeness trends from the historical perspective of global trade
Computer mediated communications: Social network – Came riding the waves of amazing coincidences
Language acquisition:
A critique on "A corpus driven study of the potential for vocabulary learning through watching movies"

Grammatical analysis: "When a linguist stumbled upon a Buttonwood"
Lexicon and the corpus: "John Sinclair's lexical items – an introduction"
tagged by regionBY REGION • Anything AsiaUS Presence in Asia
ChinaTaiwanHong Kong and MacauJapanKoreaSingaporeMalaysiaPhilippinesPakistanIndiaAfghanistan0 • Vietnam, Laos, Cambodia, Thailand and MyanmarTimor-Leste and IndonesiaMongoliaNew Zealand and Australia
tagged by topicsBY TOPIC • BiofuelRhino and elephant poachingAmerican movies hit China marketChina Internet censorshipChina's outward FDI opportunitiesGlobal rice yield
GLUCK ON SOCIALISM AND CHINA Asia (c) Robert Churchill
Photo © Robert Churchill

Professor Sidney Gluck (c) Sandi BachomI am honored to have obtained Professor Sidney Gluck's (right) permission to allow me to repost here some of his work and interview related to China and socialism. Professor Gluck is professor emertius at the New School University in New York. A classical Marxist, Gluck has been studying China for 60 years in history and modern development. He has lectured all over the U.S. and still welcomes engagement at the age of 94 – photo © Sandi Bachom


COMING 2019 – COMPUTING CORPUS Active Network Hub (c) Phil Sigin-Lavdanski
Photo © Phil Sigin-Lavdanski

Oh, please do not get me wrong. This new section is not about computers, electronics or any engineering stuff, but rather I am currently constructing a new corpus based on Spectrum, the monthly publication from the Institute of Electrical and Electronics Engineers USA, from July 2007 to date. Having been a member for over 20 years since 1992, I am always fascinated by some of the terms scientists use when they talk about or envision their new inventions or methodologies. How many of them eventually come into practice? Could there be some insights we could possibly derive, from the linguistics perspective?


This website is published and designed by Raymond Cheng, PhD DPA and reflects only his personal views and opinions in his individual capacity. It does not represent the views and opinions of his firm, employer(s), students, etc., and is not in any way sponsored or endorsed by any other thrid parties. Click here to read my full disclaimer

Share on Twitter  Add to Facebook  Share on LinkedIn  +1 on Google