How to turn off the computer automatically at a certain time

Table of contents:

How to turn off the computer automatically at a certain time
How to turn off the computer automatically at a certain time

Video: How to turn off the computer automatically at a certain time

Video: How to turn off the computer automatically at a certain time
Video: How To Disable Java 2024, December
Anonim

Do you always forget to turn off your computer before getting into bed or forget to look at the clock while working? This article will tell you how to shut down your computer at a time you specify.

Step

Method 1 of 2: Using “Task Scheduler”

Automatically Shut Down Your Computer at a Specified Time Step 1
Automatically Shut Down Your Computer at a Specified Time Step 1

Step 1. Open “Task Scheduler”

This option is available in Windows 7 and Windows 8. In Windows 7, click "Start → Control Panel → System and Security → Administrative Tools → Task Scheduler". In Windows 8, Press Win key, type "schedule tasks", and select "Schedule tasks" from the search results.

Automatically Shut Down Your Computer at a Specified Time Step 2
Automatically Shut Down Your Computer at a Specified Time Step 2

Step 2. Click "Create Basic Task"

This option is available in the “Actions” menu located on the right side of the window. You must provide a name and description for the activity. Give it an easy-to-remember name, such as "Time to Turn Off Your Computer." Click Next > to continue.

Automatically Shut Down Your Computer at a Specified Time Step 3
Automatically Shut Down Your Computer at a Specified Time Step 3

Step 3. Choose a frequency

Select "Daily" on the "Task Trigger" page and click Next >. Choose a time to shut down the computer each night at your convenience. Keep the "Recur ever: X days" setting set to "1". Click Next >.

Automatically Shut Down Your Computer at a Specified Time Step 4
Automatically Shut Down Your Computer at a Specified Time Step 4

Step 4. Select "Start a program"

This option will be on the "Action" screen and should be selected automatically. Click the Next > button to continue.

Automatically Shut Down Your Computer at a Specified Time Step 5
Automatically Shut Down Your Computer at a Specified Time Step 5

Step 5. Enter the location for the “shutdown” program

When Windows shuts down (shutdown), there is actually a "shutdown" program running. In the "Program/script" field, type C:\Windows\System32\shutdown.exe.

In the "Arguments" field, type /s. Click Next >

Automatically Shut Down Your Computer at a Specified Time Step 6
Automatically Shut Down Your Computer at a Specified Time Step 6

Step 6. Review your settings

On the “Summary” screen, review the settings to make sure you have chosen the right day. Click the Finish button to save the activity. Your computer will now shut down at a certain time each day.

Method 2 of 2: Creating a BAT File

Automatically Shut Down Your Computer at a Specified Time Step 7
Automatically Shut Down Your Computer at a Specified Time Step 7

Step 1. Open notepad via "Start > All Programs > Accessories > Notepad"

Alternatively, type "notepad" without the double quotes into the "start" menu and press "enter".

Automatically Shut Down Your Computer at a Specified Time Step 8
Automatically Shut Down Your Computer at a Specified Time Step 8

Step 2. Copy the following code:

  • @echo off
  • :W
  • if %time%==00:00:00.00 goto:X
  • goto:W
  • :X
  • shutdown.exe /s /f /t 60 /c "Sleep!!!!!!"

    It will keep checking the time to see if it's midnight, and if so, the computer will shut down with a "Sleep!!!!" message

Automatically Shut Down Your Computer at a Specified Time Step 9
Automatically Shut Down Your Computer at a Specified Time Step 9

Step 3. Change the "if %time%==" section to the time you want

Settings must be in the format: HH:MM:SS. MS and in 24-hour format for this to work.

Automatically Shut Down Your Computer at a Specified Time Step 10
Automatically Shut Down Your Computer at a Specified Time Step 10

Step 4. Hit "File > Save As"

  • Change the "Save as type" box to "All Files"
  • Type "timer.bat" into the "file name" and click "Save"
Automatically Shut Down Your Computer at a Specified Time Step 11
Automatically Shut Down Your Computer at a Specified Time Step 11

Step 5. Double click on the file

A “command prompt” screen will appear.

Automatically Shut Down Your Computer at a Specified Time Step 12
Automatically Shut Down Your Computer at a Specified Time Step 12

Step 6. Keep this window open while you do your work

Automatically Shut Down Your Computer at a Specified Time Step 13
Automatically Shut Down Your Computer at a Specified Time Step 13

Step 7. When the time you specified in method 3 arrives, your computer will display a message for one minute then your computer will shut down

Automatically Shut Down Your Computer at a Specified Time Step 14
Automatically Shut Down Your Computer at a Specified Time Step 14

Step 8. If you want to cancel the shutdown process, press Windows key (the key that has the Microsoft logo) + R

Automatically Shut Down Your Computer at a Specified Time Step 15
Automatically Shut Down Your Computer at a Specified Time Step 15

Step 9. Type “shutdown -a” without the double quotes in the window that appears and press “Enter”

A “Command Prompt” window will appear and then disappear. A balloon similar to this will also appear.

Warning

  • These methods apply to Windows 7 users only. This program does not work on other operating systems.
  • Remember to leave the command prompt window open. You can shrink it as you wish.

Recommended: