How to set the computer shutdown time. Computer shutdown timer


Most users turn off their computer using the button located in the Start menu. Some use physical buttons power supply on their machines. Very few people use the method by which it is possible shut down computer from command line.

The reason for this is that most of us don't know that you can use the command line not only to shut down or log off, but also to shut down the remote computer if you have administrative access. With these privileges, you can send a message containing the reason for the shutdown. This post will show you how to do it.

Your first action will be... At the initial stage, do this using one of several methods:

  1. Press the Windows key (window icon) + R.
  2. In the Run window, type CMD and press OK with your mouse or Enter on your keyboard.

This will run command line. Follow the instructions below depending on what you want to do.

Shutting down the local computer (yours)

Only one is needed here shutdown command, but if you enter it in this form, nothing will come of it. The command uses its extensions, namely the S prefix, which indicates that the device is disabled.

Enter shutdown -s at the command prompt and press Enter, which will soon cause the PC to temporarily shut down with a warning. If you use shutdown -p, the computer will turn off instantly.

The peculiarity of shutdown is that the computer can be shutdown from command line after a certain amount of time. The command above is prefixed with t, a numeric variable, and becomes shutdown –s -t 300.

Once executed, a countdown timer starts and a warning message is displayed. Numeric variable (in in this case 300) represents the number of seconds before the computer will shut down. Set your number of seconds based on your needs.

To display a message containing the reason for shutdown, use shutdown –s -t 500 -c "I'm tired. I don't want to work, I'm going home"(with quotes) in cmd and press Enter key. The -c option is used in the command to comment out the reason for the shutdown and what follows in quotes will be displayed in the dialog box as an explanation. This can be used to display funny messages.

Shutting down a remote computer

To turn off the remote computer Type shutdown -s -m \\computer name in cmd and press Enter. Replace "\\computer name" with the actual name of the remote PC to attempt shutdown. As mentioned earlier, you must have administrator access to the computer you are trying to shut down. To find out if you have administrative access rights, press the combination Windows keys+ R, enter the computer name, then press the Enter key.

Note: if you don't remember the name remote computer, you can find it by opening the list of all connected PCs by running net view in the command line.


If you can connect to your computer, you will need to enter your username and password. Once you enter them, the window will display a list of all directories available to you. This should help you know whether you can or cannot shut down the remote computer.

Use an expression like "shutdown -a" to roll back a shutdown. This will stop the system shutdown, shutting down if the countdown has not reached 0.

That's all, I hope the lesson was useful and you already know how to shut down computer from command line. You should always remember that running as an administrator gives you privileges, and everything else is not too difficult to figure out!

There are situations when we need to leave our computer turned on for a long time. This may be due to the PC operating at night when downloading any large files, or when there is a long installation of operating system updates - the fact is that it becomes necessary to automatically shut down the computer without direct user intervention. In this material I will tell you how to turn off your computer through certain time, and will also introduce the reader to tools that can help us with the planned shutdown of our PC using a timer.

Turn off the computer automatically at a specified time

How to turn off your computer after a certain time using Windows tools

If you need to turn off your computer using a timer, then the simplest and most convenient solution will use the tools built into the Windows OS. Such tools will serve us special team shutdown , as well as the task scheduler built into the system.

How to use the Shutdown command

To use this command press the key combination Win+R, and in the line that appears, enter (instructions for opening the command line in and ):

shutdown -s -t 3600 /f

  • s – shutdown;
  • t – indicates the time in seconds after which our PC will be turned off. That is, 3600 is 60 minutes (1 hour). Instead of this number, you can enter your own, after first calculating how long the time you need will take in seconds;
  • f - from English. "forced" - forcibly. Instructs the system to force shutdown of all active applications, that is, no program can prevent your PC from shutting down.

After you click on “Ok”, you will receive a system notification that your computer is shutting down via specified time. If you suddenly change your mind, then press Win+R again and in the line that appears, type:

shutdown -a

And this function will be deactivated.

How to use the task scheduler

Using this scheduler, you no longer need to think about how to turn off the computer after a certain time, the program will do everything for you thanks to the schedule you created. Please note that this opportunity exists in the Windows OS family starting from version 7.

So do this:

  • Click on the "Start" button;
  • Enter taskschd.msc in the search bar and click OK. The task scheduler window will open in front of you;
  • Click on "Action" in the top left;
  • Select the option “Create simple task"(Create Basic Task);
  • In the window that appears, enter the appropriate name, for example “ Automatic shutdown Windows" and click on "Next" at the bottom;
  • Next, you will need to select the shutdown frequency. If you want to do this every day, for example, at 3 am, then select “Daily”, otherwise select another option and click on “Next”;
  • In the next window, determine the shutdown time and click on “Next”;
  • In the “Action” option, select “Run the program” and click “Next” again.
  • In the line under the inscription “Program and script” we write:

C:\Windows\System32\shutdown.exe

In the argument field we type:

How to use a bat file to shut down your PC automatically at a given time

An effective answer to the question of how to turn off a PC after a certain time is to use a bat file. When you click on such a file, your computer will shut down in right time.

Open notepad and enter:

@echo off

if %time%==01:00:00.00 goto:b

goto:a

shutdown.exe /s /f /t 60 /c " Good night, your computer is shutting down"

  • Save this file called shutdown.bat (make sure it's shutdown.bat and not shutdown.bat.txt) on your desktop.
  • If necessary, activate it by clicking on it.
  • You'll see a blank Command Prompt screen, then simply minimize it and continue with your business.
  • At the right time (in this text it is one in the morning) you will see a message about turning off the computer and your PC will turn off.
  • You can change the shutdown time by specifying other numbers instead of “01:00:00.00”.

We turn off the computer at a time determined by us using programs

Third parties can also help with the question of how to turn off the system after 10 minutes or an hour software applications that need to be installed on your computer. These are products such as PC Auto Shutdown, Wise Auto Shutdown Software and several others.

PC Auto Shutdown - shutdown the PC using a timer

This PC Auto Shutdown application for Windows OS will allow you to shut down your computer after the desired time. To use its functionality, do the following:


Wise Auto Shutdown - turn off the computer at a specified time

Another application with functionality that will help you answer the question “how to turn off your computer after a while.” Wise Auto Shutdown allows you to set a schedule to shutdown, restart, exit account and sleep the PC for the desired time and date, you can also configure the regular execution of these actions. The system will notify you of the planned shutdown 5 minutes before action.

In the working window, select the task and its frequency (daily - daily, from now - starting from at this moment, on idle – when the system is not in use) or one-time activation exactly at a certain time (specified time).

Other applications for deactivating your computer at a specific time

In solving the problem of turning off the computer after the right time, in addition to the above applications, others can help. I would note such products as Aquarius Soft, Winmend Auto Shut Down, Fastimizer, Free Auto Shutdown, PCmate Free Auto Shutdown, Timed Shutdown and a number of others. They all have similar functionality, allowing you to set the time and frequency of shutting down your PC.

Conclusion

In the task of how to turn off the computer after a certain time, the user can be helped regular means Windows OS and variety software products, which you need to download and install on your PC. In most cases, the Windows toolkit is quite sufficient, which allows you to easily and quickly turn off your computer in required by the user time.

Operating system developer Windows Scheduled options are available. As such, there is no shutdown button indicating parameters. To do this, you need to use the command line and other standard (built-in) tools Windows. This method is especially good because it works always and everywhere, since it was developed and provided directly by the operating system developer himself. Tested on Windows XP, Windows 7, Windows 8.1

Those who are not interested in theory can go straight to the sections:
-
-

Shut down or restart your computer on a schedule
(at a specified time) with standard (built-in) Windows tools

Scheduled
(at a specified time) from the command line (MS DOS)

Since time immemorial, all operating systems of the MS Windows family have included a disk drive. operating system(abbreviated as MS DOS), which does not have the usual user interface for “batting” on it with the mouse. MS DOS is controlled using the keyboard input method. text commands in a special window, in the so-called command line . The command line works on any computer running any modification of the MS Windows operating system.

In the operating system MS Windows, from the command line you can do absolutely everything that this system is capable of.

TO command line can be called in one of the following ways:

  • press a key combination Win+R, enter cmd.exe, click OK
  • “Start Menu > Run”, enter cmd.exe, click OK
  • “Start Menu > All Programs > Accessories > Command Prompt”

Either way, a window will open MS DOS
(command line to enter a text command)
It is in it (on the command line) that we will:

  1. turn countdown on and off
    shutting down or restarting the computer
    (i.e. indicate after how long to perform the action)
  2. assign and cancel exact FOR
    shutting down or restarting the computer
    (i.e. indicate exactly when to perform an action)

All manipulations come down to accessing the file shutdown.exe
and specifying the required parameters

shutdown command options and syntax
(to access the shutdown.exe file)

File shutdown.exe is responsible for shutting down the operating system Windows, rebooting it, etc. To get a list of file launch parameters shutdown.exe from the command line - press the keyboard shortcut Win+R, in the window that opens, enter cmd.exe(go to MS DOS) and already in the DOS window (manually) enter “ shutdown/?"(without quotes). Click "OK" ("Enter" key). In response, the system will display a complete list of command parameters shutdown:

Regarding the parameter syntax for the command shutdown, That MS DOS understands both recording options - and with a hyphen (minus sign " - " on numeric keypad) and through a slash (slash on the numeric keypad):

  1. shutdown /s /f /t 2000 equivalent shutdown -s -f -t 2000
  2. at 23:15 shutdown /r /f equivalent at 23:15 shutdown -r -f

In our case, there is no fundamental difference between a slash and a hyphen. It is much more important to remember about spacing. Because, in the understanding of the operating system, slash equals hyphen followed by space , then without a space - it may not work.

For example, in the screenshot above, I entered the commands “ shutdown-?" And " shutdown -?", and " shutdown/?" And " shutdown/?" The system's answer is obvious.

Simplified entry of the shutdown command
(Run window)

To enable or disable the countdown timer, open the “Run” window ( Win+R OK.

The time before turning off (rebooting) the computer must be entered in seconds.

Correct command entry is confirmed by corresponding pop-up windows in the tray. Pop-ups should appear after each correct command entry. They look something like this:

System response to a command to turn off or restart the computer after 33 minutes = 2000 seconds
System response to a command to cancel a command to shut down or restart the computer

10 minutes before the task is completed, the system begins to remind you that the countdown is about to end. The reminder form can have several options. Probably depends on Windows versions and design style.

A few minutes before the task is completed, the system notifies that the countdown is about to end.

Command line installation
exact time of the current date
to shut down and restart the computer

Setting the exact time current date from allows you to assign exact time current date to shut down or restart your computer. This task will only be executed ONCE, after which the task assignment procedure will need to be repeated. If you need the computer to be systematically turned off according to a schedule (at the same time), then you need to use or

To set the exact time of the current date to shut down or restart the computer, open the “Run” window ( Win+R), enter the desired command and click OK.

The computer shutdown (reboot) time must be entered in the specified format.
Time values, of course, are different for everyone.

Unlike the installation, correct input commands when setting the time to shut down or restart the computer are not confirmed by the corresponding pop-ups in the tray

It is convenient to create from the command line DISPOSABLE task to shut down or restart the computer. If you need to systematically turn off the computer on a schedule (for example, at a given time, at the end of the working day), then you need to set the shutdown time after or after

Shutdown and restart your computer
using an executive (batch) file

Executive (batch) files with the extension .bat() make working with the command line much easier. Once you create such a bat file with the text the required command, you can perform it by simply clicking on the body file, without tediously calling the command line window and entering the command text into it.

Let's remember the list of our commands and create the corresponding batch files:

  1. shutdown /s /f /t 2000 or shutdown -s -f -t 2000
    (turn off computer after 33min = 2000 seconds)
  2. shutdown /r /f /t 2000 or shutdown -r -f -t 2000
    (restart computer after 33min = 2000 seconds)
  3. at 23:15 shutdown /s /f or at 23:15 shutdown -s -f
    (turn off the computer today at 23:15)
  4. at 23:15 shutdown /r /f or at 23:15 shutdown -r -f
    (reboot your computer today at 11:15 pm)
  5. shutdown/a or shutdown -a
    (cancel the command to shutdown/restart the computer)

To create an executive (batch) batch file - open notepad, copy (write) into it the desired line commands and save the file with the extension .bat. For example, let's create two files - the “Shutdown.bat” file and the “Cancel.bat” file. In the first file we write the line “ shutdown /s /f /t 2000" (without quotes), in the second - the line " shutdown/a"(without quotes). Clicking on the first file will give a command to turn off the computer after 33 minutes = 2000 seconds. Clicking on the second file will cancel the command to turn off the computer after 33 minutes = 2000 seconds. Thus, we will receive two files, clicking on which will have the same effect as in the case of a call and entering the desired command into it.

Everything is very simple, and it is much more convenient than the command line. In addition, this method gives room for flight of imagination and creative thought. For example, you can set the timeout to 28800 seconds. (28800 seconds = 8 hours = length of a working day), put the “Shutdown.bat” file in the computer’s startup folder and no longer worry about turning it off at the end of the working day. Because every time the system boots, it will receive a command to shut down after 8 hours = 28800 seconds. The same effect will be achieved by the executable.bat file in startup, with the content “ at 17:00 shutdown /s /f"(without quotes). Moreover, this command is even preferable, since it sets the exact time to turn off the computer and does not depend on the number of reboots during the working day.

Funny. If you set the timeout to 180 seconds in the bat file in the startup folder, then the computer will turn off 3 minutes after it starts.

Shutdown and restart your computer
at a specified time via the task scheduler

The task scheduler is a special feature Windows. The Task Scheduler allows you to create and execute various tasks Scheduled. In our case, this is to systematically turn off or restart the computer specified time. Unlike and, the task scheduler allows you to more flexibly assign the exact time and frequency of shutting down the computer.

To configure the computer to shut down or restart at a specified time through the task scheduler, open the task scheduler. It is located in “Start Menu > All Programs > Accessories > System Tools > Task Scheduler”

Then, in the window that opens, write the name of the task and its description. Here you can write whatever you want. The name of the task and its description will then be displayed in middle column scheduler after creating a task. I wrote the name - “Shutdown”, the description - “Turn off the computer” and clicked the “Next” button...

In the next window that opens, you need to select the frequency of the task. I chose “Daily”. "Further"...

In the next window that opens, you need to specify the date from which to start executing the task and the time it will be completed. By default, the current date and time are displayed. The date can be left unchanged (start today), but you need to set your own time. This will be the required time to shut down the computer. I set it to 17:00:00, which corresponds to the end of my working day. The line “Repeat every 1 day.” - left unchanged. "Further"...

In the next window that opens, you need to set the switch (checkbox) next to the words “Run the program”. "Further"...

In the next window that opens, in the “program or script” line, enter the command “ shutdown" (without quotes), and in the "add arguments" field " -s -f" (without quotes) - to turn off. If you need to restart the computer, then in the “add arguments” field enter “ -r -f"(without quotes). "Further"...

Click the “Done” button. Problem on daily computer shutdown at 17:00- created and launched. You can check your work or delete a task as follows. We launch the scheduler, click on “Task Scheduler Library” and in the middle column we find the desired task (by name). Right click Click on it with your mouse and select the one you need from the drop-down menu.

To check, I clicked on “Run”. The computer responded instantly. It works, yay!

Turning off the computer
Shut down your computer from the command line

Automatic shutdown of the computer is extremely useful option, which will help you out more than once. It comes in handy in cases where your PC or laptop is busy with a long process and you need to leave. In this case, you can configure the computer to turn off - when the desired operation is completed, it will turn off on its own. And you can calmly go to bed, go to work or do your other things.

Most often the setting automatic shutdown A computer is required if you:

  • check your PC for viruses;
  • convert video files;
  • install a computer game;
  • download large files;
  • copy important data, etc.

There are many options here, but the point should be clear.

There are 2 ways to set the computer shutdown time. The first is using built-in Windows tools. Second - using additional software. ABOUT the latter method read here: . And this article describes everything possible ways configure the computer to turn off at a specified time using built-in Windows tools.

All the methods below are universal and work on Windows 7, 8 and 10. Therefore, no matter what operating system you have, you can schedule your computer to shut down in any convenient way.

The first method on how you can enable automatic shutdown of a computer or laptop is to use the “Run” section. For this:

The following window will appear confirming that everything was done correctly.

The number 3600 is the number of seconds. It can be anything. This particular command activates the automatic shutdown of the PC after 1 hour. The procedure is one-time only. If you need to turn it off again, you must do it again.

Instead of the number 3600, you can write any other number:

  • 600 – shutdown after 10 minutes;
  • 1800 – after 30 minutes;
  • 5400 – in an hour and a half.

I think the principle is clear and desired value you can do the math yourself.

If you have already activated the computer to shut down and for some reason changed your mind, then call this window again and write the line shutdown -a . As a result, the scheduled automatic shutdown will be cancelled. If everything is done correctly, the following message will appear.

Shutting down the computer via the command line

Another very similar method is to turn off the computer via the command line. To enable this option:


If you suddenly change your mind this operation, then open this window again and enter – shutdown -a .

This command only works when you have already set the time to turn off the computer, but it has not yet arrived.

By the way, if this procedure needs to be performed regularly, then there is an easier way. To avoid opening the Run window or Command Prompt, create a shortcut (for example, on your desktop). And in the “Object location” field write next line C:\Windows\System32\shutdown.exe -s -t 5400(the number can be any). Click Next, then enter a name for the shortcut and click Finish.

Now, when you need to set your computer to shut down, just click on this shortcut. And this option is immediately activated (you will see a confirmation message).

For convenience, you can create another shortcut to remove turning off the computer (in case you need it). But here you need to write down the following: C:\Windows\System32\shutdown.exe -a(no period at the end).

Shutting down your computer on a schedule

And the last method is to turn off the computer by time using the “Scheduler”. Suitable when this procedure you need to do it regularly: daily, weekly, etc. In order not to constantly launch the command line, you just need to set the time to turn off your computer or laptop once and that’s it.

To do this:

  1. Go to Start – Control Panel – Administrative Tools.
  2. Select Task Scheduler.
  3. IN right column Click on “Create a simple task”.
  4. Enter a name that you understand - for example, “Automatic shutdown of PC”.
  5. Indicate how often this procedure should be performed (if once, then it is better to choose one of the methods for automatically turning off the computer described above).
  6. Configure the shutdown of your computer or laptop (specify the start time and date).
  7. Select the first item - “Run program”.
  8. In the “Program” field write shutdown , and in the “Arguments” field - -s -f (the -f switch closes programs in forcibly- in case they suddenly freeze).
  9. Click the "Done" button.

This is how you can set the computer shutdown time. Daily or monthly settings are carried out in approximately the same way. Some fields will be different, but there is nothing complicated there - you'll figure it out.

What should I do if I need to edit or delete this task? In this case, go back to the “Scheduler” and open the “Library” tab. Find your task in the list here (by name) and double-click with the left button.

In the window that opens, go to the “Triggers” section and click on the “Edit” button.

If you no longer need to shut down your computer on a schedule, then go to the “Library”, select your task, right-click, and then click “Delete”.

A few words in conclusion

In many modern programs There is a checkbox “Turn off the PC after the procedure is completed.” Most often, it is available in those utilities that take a long time to complete their work - for example, disk defragmentation, scanning a laptop or computer for viruses, etc.

Be sure to check that each program has this checkbox. If it is, then you will not need to set a time to turn off the computer. It's much easier and more convenient. If it is not there, then you will have to configure it manually.

That's all. Now you know how to turn off your computer or laptop in Windows 10, 8 and 7, and you can easily do it. Choose any method that suits you best and use it if necessary.

By the way, how to correctly calculate the time when you need to turn off your PC? Usually programs show an approximate value when specific procedure(virus scan or defragmentation) will be completed. Look at it and add another 20-30% (or more) on top. In any case, your PC will be turned off before you wake up in the morning or come home from work in the evening.







2024 gtavrl.ru.