How to disable computer shutdown. How to turn off the computer after a certain time

Some users need to configure the computer to turn off according to time or even on scheduled days at certain hours. The reasons may be different, and the most commonplace is that you are already watching some movie at night and do not want the computer to work until the morning if you suddenly fall asleep :) The same function is used by some on TVs and all for the same reason.

And the most interesting thing is that such a function in a computer is far from being on the surface. It seems that a computer is such an omnipotent device, but such a banal function is somewhere tucked away that a beginner will not find it!

So, from this article you will learn how, using a simple command in the Windows console, you can configure the computer to turn off after a certain number of seconds, as well as how to set the computer to turn off at a time on certain days!

Beginners should not be afraid of the words "Console", "Command line" and the like, since we are not talking about programming and other complex tasks! I'll show you an example and you'll understand...

So, now we will consider 2 ways to turn off the computer in time:

    Simple shutdown of the computer after a specified number of seconds;

    Turn off the computer on the specified day and time.

How to set a timer to turn off the computer?

To accomplish this task, we only need the Windows command line.

In any operating system, you can quickly find the command line through the search. For example, in Windows XP, Windows Vista or Windows 7, open the Start menu and type "cmd" in the search box at the bottom. The Command Prompt application appears in the list.

If you have Windows 8, then also open "Start", then click on the search icon on the right:

In the field that appears, type "cmd", and the Command Prompt program will immediately appear in the search results:

And finally, if you have the latest development from Microsoft - Windows 10, then the default search icon will be located right next to the Start button. Click on it, enter "cmd" and you will see the "Command Prompt" application:

To complete our task, administrator rights may be required, and therefore, in order not to look for the reason why the timer shutdown may not work, we will run the command line as an administrator. To do this, right-click on the program icon and select "Run as administrator":

You should have a black command prompt window that looks like this:

Please note that if you have in this window instead of the path " C:\Windows\system32' specifies the path to the user's folder (for example, ' C:\Users\John”), then you did not run the command line as an administrator, but as a regular user! In this case, it is better to close it and open it again as an administrator.

After the command line has been launched, it remains to correctly register one command and you're done!

Shutdown command is used to shut down and restart the computer at the Windows command prompt.

We type the following on the command line:

Where 3600 is the number of seconds after which your computer will shut down. If you now press the "Enter" button on your keyboard, your computer will be turned off in 1 hour, since one hour is exactly 3600 seconds. It is very easy to calculate :) We know that there are 60 seconds in one minute, and since these minutes are also 60 in an hour, we multiply 60 by 60 and get 3600. For example, 1 hour 20 minutes is 4800 seconds.

Now with regard to these characters "/s" and "/t".

These are the 2 options I specified for the shutdown command. The "/s" parameter means that the computer should just shut down, and not restart or simply log out. For example, to reboot, you need to specify “/ r” instead of “/ s”. Parameter "/t" - allows you to set the time before the command is triggered. For example, if we specified a command without "/t", i.e. like this "shutdown / s", then the computer would turn off instantly.

Now, I think you understand everything. Just specify your time before turning off the computer and press the "Enter" key!

The command line window will close and the countdown will start immediately. This will give you a warning message, for example:

A warning of this format is issued when only a few minutes are left before the computer is turned off.

But if you set a long timer, for example, for an hour or more, then when you start it, you will simply receive a notification in the system area:

If you suddenly decide to cancel the action of the timer, then you need to enter the command line again and execute the following command there and press "Enter":

At the same time, you will receive a notification in the system area that the scheduled shutdown has been canceled:

This is how a simple scheme for turning off a computer on a timer looks like.

And now let's consider a more interesting option - how to postpone turning off the computer for a certain day and a specified time.

How to set the computer to turn off at the right day and time?

To implement this possibility, we need the system utility "Task Scheduler" and "Notepad".

Through the Windows Task Scheduler, you can schedule the execution of any program on a specific day and time, and even set a recurring task for various periods, for example, daily, weekly.

There is only one catch: through the scheduler, it will not be possible to open the command line, as it was done, and write a shutdown command there. This is because we need some kind of file to run, which can be specified in the scheduler and which will contain the command to turn off the computer.

This issue is very easy to solve! You need to open notepad, write “shutdown / s / t 000” there, re-save the text document to a file with the “.bat” extension (for example, “Shutdown.bat”), and then point to this file in the task scheduler.

Now let's take a closer look, point by point:

    Open Windows notepad. It is available by default in any Windows system and can be found in the Start menu, in the Accessories category, or by searching for Windows and typing Notepad.

    In notepad write: shutdown /s /t 000.

    Here, using the “shutdown” command, we indicated the action to shutdown / restart the computer or log off the system.

    With the “/s” parameter, we specify the action - to perform exactly shutting down the PC!

    With the “/t” parameter, we specify a timer before shutdown - 0 seconds, which means that the computer will turn off instantly without delay.

    Here's how it should turn out:

    Resave the notepad file to a file with the “.bat” extension. To do this, in Notepad, click File > Save As.

    In the save window, specify the location where the file with the command to turn off the computer will be stored, after which we specify any file name, but so that it must be “.bat” at the end, and not “.txt”:

    For example, like mine - "Shutdown.bat". The name before ".bat" can be anything!

    If you saved the file correctly, it will look like this in the system:

    If it looks like a regular text document, then most likely you forgot to specify the ".bat" extension when saving, and therefore do this step again.

    What is this BAT file? A file with the “.bat” extension allows you to execute Windows commands one by one, as well as various scripts. In our case, only one command is registered - turn off the computer immediately.

    Open the task scheduler and set up the launch of the created Bat-file.

    The task scheduler is also built into all Windows systems by default and can be found by searching or through the control panel: "Control Panel" > "System and Security" > "Administrative Tools".

    This is what the task scheduler looks like:

    In it on the right, in the "Actions" window, open the item "Create a simple task":

    The scheduled task setup wizard will open, where you need to go through several steps. In the first window that appears, enter the name of the task, for example, "Turn off the computer" and click "Next":

    In the next step, you need to mark when the scheduled task will be performed? It depends on when you want to turn off your computer. For example, you can set the task to run daily, and then you will need to specify the execution time. You can set up a weekly shutdown and then you can select specific days and times to complete the task.

    And if you just want to set up a one-time shutdown of the computer on a specific day and time, then select the “Once” item.

    Now, depending on which shutdown period you set in the previous step, you will need to specify the month/days/time to turn off. If you specified a one-time execution of the task ("Once"), then you need to select only the day and time to turn off.

    You can specify the date manually with numbers or select using the calendar.

    After setting the date and time of shutdown, click on the "Next" button:

    In the next step, select an action for the task. We mark "Run the program" and click "Next":

    In the next window, select our created file with the “.bat” extension, where the shutdown command is laid. Click on the "Browse" button and select this file on your hard drive, then click "Next":

    In the last window, mark the item marked in the image below and click "Finish":

    This option means that after clicking "Finish", an additional window of properties for the created task will open. We need this to enable the execution of the program with administrator rights.

    A window will open in which on the first tab "General" we mark the item "Run with highest rights" below and click "OK":

Everything! The scheduled task has been created. Now, as soon as the date and time you specified arrive, the computer will immediately turn off.

If you suddenly want to change any parameters of the scheduled task, then open the task scheduler again, select "Task Scheduler Library" in the left part of the window, right-click on the task you created in the list in the center, and select "Properties" from the menu that opens :

A window will open where on several tabs you can change all the settings that you configured!

In this way, you can set the computer to turn off by time (timer), as well as schedule a shutdown for any day and time, and even set up a regular task execution. I'm sure this feature will be useful to someone.

See you in the next posts :)

There are three ways shutting down the computer:

  • press the computer's power button;
  • press the "Shut down" button (sometimes called the power button) in the start menu;
  • or, if it's a laptop, close its lid.

Using the Shut Down Button on the Start Menu

To turn off computer, click the Start button , and in the lower-left corner of the Start menu, click To finish work.

After pressing the button To finish work the computer closes all open programs, the Windows system itself and the computer with the screen are completely turned off. Since your work is not saved when you turn off your computer in this way, you should save your files first.

Change the options for the Shut Down button

By default, the Shut Down button shuts down the computer. However, you can change the action that is performed when the button is clicked.

  1. Open the Taskbar and Start Menu Properties dialog box by right-clicking on the menu icon Start.
  2. Click the Start Menu tab.
  3. Listed Power button action select the one you want and press the OK button.

If the computer is connected to a network domain, then through the settings set by the network administrator (Group Policy settings), it will probably not be possible to change these settings in the way described above.

In certain situations, the Shut Down button may change its appearance. If your computer is configured to automatically receive updates and they are ready to be installed, the Shut Down button will look like this:

In this case, after pressing the button "Shut down" Windows first installs updates and only then turns off the computer.

Note: It takes longer to start the computer after shutdown than it does to wake it up from sleep.

Using Windows hibernation

Instead of turning off your computer, you can put into sleep mode. When the computer goes to sleep, the display (and often the fan) turns off. When the computer is in sleep mode, the light on the computer blinks or turns amber. The process of "falling asleep" lasts only a few seconds.

Because Windows saves your work, no need to close programs and files before the computer enters sleep mode. However, it's a good idea to always save your work before putting your computer into any of the low power modes. The next time you turn on your computer (and password, if needed), the screen will look the same as it did before you turned it off.

To wake up the computer, press the power button on the case. Because you don't have to wait for Windows to start up, your computer wakes up in a matter of seconds and is ready to go right away.

Note A: When the computer is in sleep mode, it uses a small amount of power to store your work in memory. If you have a laptop, don't worry - the battery won't run out. After the computer has been in sleep mode for several hours, or when the battery is low, your work is saved to the hard drive and the computer turns off completely and consumes no power.

When to turn off your computer

Although putting the computer to sleep is the fastest way to turn it off and the best way to get back to work quickly, in the following cases you still need to shut down computer.

  • When you add or upgrade computer hardware, such as installing memory, a disk drive, a sound card, or a video adapter. Turn off the computer and unplug it from the power source before installing hardware.
  • When connecting a printer, monitor, external drive, or other non-USB or IEEE 1394 port to the computer. Turn off the computer before connecting the device.

Note: You do not need to turn off the computer to connect equipment with a USB cable. Most new devices use this cable.

For laptop users - close the lid

If you have a laptop, there is an even easier way. turn off the computer - close the lid. By the way, you can configure the actions that the computer will perform when the lid is closed - it will fall asleep, turn off, or go into another power saving state.

You can also turn off the laptop by pressing the power button on the case.

All shalom, friends. Most recently, I went through interesting topics on the Internet to write another article. Not because they don't have their own, but to awaken the muse, so to speak. And then I came across an interesting method that tells how to turn off computers connected via a local network. Let's say you are at school, college, at work, where there are probably a bunch of computers and they are all connected, as a rule, via a local network. With simple manipulations, you can enter a couple of commands from one computer and turn off all the others. Not a bad draw, by the way.

Before this tasty way, I will write in general how to turn off the computer in order to make this article fatter.

How to shut down a computer running any OS

I think it is not necessary to explain how to turn off the computer through the Start menu of the operating system. Those who use operating systems on the Linux kernel most likely also know how to do this. But I'll explain anyway.

You click the start menu, select a section "Shutdown" or the icon that means shutdown, like on Windows 10, and there you will find several options that are responsible for shutting down the PC, restarting, sleeping and hibernating.

There is an interesting point that many users sin. Unscrupulous people turn off the computer or laptop using the shutdown button, which is responsible for forced shutdown. But why do this? Do you really want to lose unsaved data. Many programs over time may not start at all due to such manipulations. If your computer quietly turns off through Start, then do just that.

Why turn off the PC, do not

All of you know about features such as sleep mode and hibernation. At sleep mode The current system state is transferred to RAM, and the computer enters a low power mode, while you can very quickly wake up the computer and continue working. hibernation mode even tougher. It transfers the current state of the system to the hard drive and the computer shuts down completely, thus consuming no power at all. After switching on, everything returns to its original state. The disadvantage of this method is that it is created, which can take up quite a lot of space. Therefore, you must first take care of increasing the volume of the system partition, or increasing it with the help of specialized software.

Need cheap Vkontakte bots? Buy them at https://doctorsmm.com/. Here you will get a huge selection of various conditions and criteria for this service, which will allow you to make not only an inexpensive purchase, but also a really useful one. The added pages will work, and not hang dead weight, reducing the page rank.

Shutting down the computer with CTRL+ALT+DEL

The well-known key combination, which on modern operating systems, opens a special window from where you can get into the task manager, lock the system, exit it and turn off the computer.

On tablets, although there is no keyboard (although some still have it), you can hold down some keys to make this window appear.

You can also quickly lock Windows (if you have a password or PIN), which is done by pressing the keys Win+L and then turn off the PC.

Well, the well-known combination Alt+F4. I don't think I need to explain what it is.

You can create a shortcut on the desktop to turn off the computer, but I will not describe this method now. You can read about it in the article.

How to turn off the computer after a certain time from the command line and remotely

Now, we've moved on to the tidbit. In this part, I will tell you how to turn off computers connected via a local network. Let's say you are a student or a schoolboy and you are sitting in a computer science class, and then you want to fool around and turn off all the PCs in the class. What needs to be done for this?

First, make sure that a local network is really organized between the computers. Launch Command Prompt and enter the command:

arp -a


You will be presented with a list of devices associated with this computer. But this method is not very accurate. For example, for me it shows a modem, some kind of multimedia device, and even a connected smartphone. So let's use another option.

Go to catalog "This computer" and go to the section on the left "Network". Perhaps a message will appear at the top saying that sharing is enabled, confirm this.



Open the command prompt again, preferably as an administrator. By the way, the PowerShell utility also works, you can use it if you want. Enter this simple command:

shutdown -i

A window appears where you must add the computers that you want to disable (if they are not in the list), and then select any of the suggested actions: Restart, Shutdown and Unexpected Shutdown. Choose an item "Shutdown" and uncheck the option "Warn users about this".

Also uncheck the "Planned Stop". After that, click OK and enjoy.

In addition, you can enter the command line to turn off the PC directly on the command line. Here's what it will look like:

shutdown -s -t 30 -m \PCNAME

Instead of the number 30 (time in seconds), you can specify absolutely any value, or even remove the “-t” variable so that the computer turns off immediately. Instead of a name, you can enter the IP address of the PC you want to disable.

These are the things we can do on the command line, and this is just a little. You can manipulate other people's PCs at a distance as you like. The main thing is that the actions are not illegal, but I don’t think that simply turning off the PC is such.

Most users turn off the computer in the classic way - through the Start menu or the Windows 8 start screen. But, this way of turning off the computer is far from always convenient. Sometimes it is much more convenient to turn off the computer or use a shortcut on the desktop. In this article, we'll show you how to implement this.

Shutting down the computer through the command line is done using the shutdown command. The shutdown command can take the following options:

  • /s - Turn off the computer;
  • /a - Cancel restarting or shutting down the computer. This parameter can only be used while waiting for a shutdown (shutdown with delay);
  • /h - Go to ;
  • /t xxx - Set a delay of XXX seconds before rebooting or shutting down the computer. Allows ;
  • /c "comment" - Comment indicating the reason for shutting down or restarting the computer;
  • /f - Forced termination of all open programs without warning the user. This option is used if the /t option specifies a delay greater than 0 seconds;
  • Other parameters that can be used to shut down the computer through the command line can be found by using the shutdown command without any parameters;

So, in order to immediately turn off the computer through the command line or the so-called console, you must enter the following command:

  • Shutdown /s /t 00

If you want to turn off the computer with a delay, then instead of zeros, you must specify a delay in seconds:

  • Shutdown /s /t 60

If you want to restart your computer, use the /r option instead of the /s option:

  • Shutdown /r /t 00

To reboot with a delay, use the /t parameter with the number of seconds:

  • Shutdown /r /t 60

When restarting or shutting down the computer using the delay, a warning window appears on the screen.

If the delay is very long, such as 60 minutes (3600 seconds), then instead of a warning window, a pop-up message appears in the lower right corner of the screen.

You can stop the computer shutdown while the delay is in effect. To do this, on the command line you need to enter the command:

  • Shutdown /a

It should be noted that the Shutdown command can be used not only in the command line, but also in shortcuts. This allows you to create a shortcut to shut down your computer. Such a shortcut can be left on the desktop or pinned to the Windows 8 start screen.

To do this, open the context menu (right mouse button) and use the "Create Shortcut" function.

In the window that opens, the command to shut down or restart the computer and click on the "Next" button.

As a result, you will get a shortcut that, when opened, will turn off your computer.

By learning how to use the automatic shutdown feature in Windows 10, you will eliminate the need to turn off your computer yourself, which is convenient in a number of situations.

For example, you put a file on download, and went to sleep, having previously configured the shutdown for the time the download process is expected to complete. As a result, the file was loaded and the computer turned off in time.

Automatic shutdown is configured by standard OS tools. Do the following:

open Start, type “task scheduler” in the search box (in Windows 10, type “Taskschd.msc”)

click "Create Task"

enter any process name and check the "Run with highest privileges" checkbox if the function is disabled;

open the "Triggers" section and click the "Create" button

set the duration of the task and specify the start date for its execution. The desired automatic shutdown frequency is also set here.

open the "Actions" tab and click the "Create" button

enter the following command in the "Program" line: "C:Windows\System32\shutdown.exe" in the "Add Arguments" field, enter "-s" (without quotes). This will close running applications when shutting down Windows 10.

open the "Conditions" section, check the box "Run the task when the computer is idle". Set the desired time and activate the function "Restart when idle resumes";

open the "Settings" section and activate the "If execution fails, restart after" function. Specify the time after which the task will restart. Put 10 or 30 minutes.

At the end, it remains to click OK, and the computer shutdown function is activated.

Automatic shutdown of the computer through the command line

The method is suitable for one-time setting Windows to automatically shut down after the desired time. Do the following:

Press the key combination Win + R enter the command shutdown -s -t 1200. In this case, "1200" is the number of seconds after which the computer will turn off. Change the value in seconds and click the Enter button.

To cancel the automatic shutdown, do the same, replacing the previously mentioned command with the following: shutdown -a.

Software timers to automatically turn off the computer

There are many applications that allow you to configure the automatic shutdown of the computer through a familiar graphical interface for the user.

power off!

At first glance, the interface seems complicated and overloaded. In fact, you just need to "make friends" with him. The utility offers several sections.

Timers. This is where you set options for shutting down, rebooting, or going to standby/sleep.

In the "Standard timer" block, you can configure the computer to turn off at a certain time, or after the countdown is completed (set by the user), or after a specified OS idle time.

Winamp' dependent timer. The software is tied to the popular Winamp media player. The operation of the utility can be controlled from the player.
For example, you can set the system to turn off after playing a certain number of songs or after the last position of the playlist has finished playing. The function will appeal to lovers of falling asleep to music (see).

CPU dependent timer. The application adapts to the state of the processor. For example, the utility can be configured to shut down the system if the allowed load on the processor (see ) is exceeded for a certain time period.

Internet dependent timer. The function is useful for users who regularly download large files from the network. The software can be configured to shut down / activate sleep mode after downloading files, etc.

Other features. The utility has a customizable diary and other useful features.

Time PC

The program can be configured to put the computer into hibernation mode and then wake up on a schedule. The built-in scheduler features are designed for weekly use. There is a function to launch the application along with Windows (see).

Hibernation can be compared to "lethargic sleep". Unlike sleep mode, hibernation ends the main system processes (even coolers stop making noise) and the computer looks like it is completely turned off.

Before going into hibernation mode, information about the state of the system is saved. After waking up, all processes are restored.

Before using the utility, find the power management section in the Control Panel, open the sleep settings and enable the use of wake timers. Otherwise, the application will not be able to wake up the system on schedule.

Sleep timer 2007

Modest in its functionality, the program will take up a minimum of space and does not require pre-installation. The application can do the following:

turn off / restart / put the computer into sleep mode at a specified time;

forcefully terminate user-selected processes;

smoothly reduce the volume;

run the user program through a shortcut.

OFF Timer

Another representative of the category of elementary programs from the category of "nothing more". There is only one function: turning off the computer at a user-specified time.

All running programs will be forcibly closed (see ).

Before shutting down the system, the program will issue a corresponding notification. The user will have 10 seconds to cancel the upcoming event.


The program does not require installation.

SM Timer

A tiny utility with two main functions:

1. turning off the computer at a specified time;

2. end of the session after a certain time period.

Time is set using sliders - the only decoration of a modest minimalist interface.

Now you know how to set Windows 10 to shut down through the command line, task scheduler, and popular third-party programs. Choose the option you like, follow the appropriate instructions and everything will work out.

Loading...Loading...