How to set up smartphones and PCs. Informational portal
  • home
  • In contact with
  • Turn off the computer at the specified time. Shutdown Command: Shutdown and Restart Windows from Command Prompt

Turn off the computer at the specified time. Shutdown Command: Shutdown and Restart Windows from Command Prompt

To speed up the work at the computer, it is always useful to use keyboard shortcuts, which save a lot of time. This applies not only to Windows XP and 7, but also to more modern products - Windows 10. Therefore, there are interesting ways to control the system through the command line. An interesting fact is that such an interface does not become outdated even in Windows 10, since some things are still durable. In this article, we will consider the issue of shutting down the system through this command line, concise in its design. The best part is that with this method you can turn off computers not only in the immediate vicinity, but also through remote controls.

Any given time can be used. At the same time, the method is so universal that it is suitable for all systems from XP to 10 generations inclusive. Anyone can set up such a service, especially since such a shutdown is very popular for those people who often want to turn off the computer after watching a series or downloading movies before going to bed. It is very convenient when you have been sleeping for a long time, and the system itself turns off at a specified time.

Launch code

To turn off your computer through an interesting interface - the command line, you must perform a series of sequential steps:

  • The first step is to run a command line on the system. Usually it is indicated in the search as Cmd.

  • A window with a black background will open, where you need to type: shutdown / s / t 60. This code means that the computer will shut down in one minute.

As you might guess, the set time is set by the /t 60 sequence. There are other keys that help configure auto-shutdown:

  • /L - this is an auto-disconnect with the subsequent exit from the current user.
  • / f - this is an auto-shutdown with the subsequent closing of all running programs in the Windows system.

Remote shutdown

Auto-shutdown can also be configured through the computer's remote control system. To do this, you need to write another code:

  • shutdown /s /t 60 /f /L /m \\192.168.1.55

You can also add the computer name after /m. For example, if the computer is called USER, then the code changes:

  • shutdown /s /t 60 /f /L /m \\USER

Platforms

Such a shutdown works in all versions of Windows: it can be an outdated Windows XP and Windows 10, which has recently been cherishing hope for perfection. The situation is that auto-shutdown through a modest interface - the command line - is the basic work with the system. There is no need to set up a graphical shell in it, no need to make the appearance fashionable and modern. A simple black window on the desktop of a computer perfectly solves all current problems if you know the basic codes. Therefore, it doesn't matter if XP or 10 is installed on the machine, the commands that are hardwired into the kernel of the operating system can be easily executed through the command line using the same methods as before. By the way, time is running out, and a faster auto-shutdown, even in Windows 10, has not yet been developed.

(Visited 2 354 times, 1 visits today)


The computer is a magical object that gives us all the entertainment and knowledge of the world, but mercilessly devouring our time in return. Who among us has not had to sit up long after midnight in front of the monitor, being unable to break away from an interesting article or from cutting with monsters. As a result - chronic lack of sleep, trouble at work / study, conflicts in the family. You can solve these problems by setting your computer to turn off automatically at a specified time. Moreover, it is not at all difficult to do this.

To turn off the computer daily at a specified time, we will use standard Windows tools. Let's open Task Scheduler (Control Panel\All Control Panel Items\Administrative Tools) and select the link in the right pane Create a simple task.

The task creation wizard window will appear, in which you must enter a name, description, and then, on the Trigger tab, specify the frequency. Push button Further go to the next tab and enter the task execution time. Again Further, and it remains only to choose the type of action to be performed ( Run the program) and enter in the field shutdown.

In addition, you must add arguments to the appropriate field -s -t 60. This indicates that the shutdown will be performed, and not the restart or sleep of the computer, and before that there will be a pause of 60 seconds. In general, the shutdown command accepts other arguments, but you can learn more about this in the Windows help system.

So, in just a few minutes, we taught the computer to automatically turn off at a given time, thereby neutralizing the most dangerous killer of our free time. Dedicate the best free hours to your loved ones, sports, nature. After all, there is nothing left of the summer!

Shutdown /h put the computer into hibernation mode.

When a command is executed, all information from RAM (processes, programs, data) is stored in a special file hiberfil.sys located in the root directory of the system drive and a normal power off is performed. The next time you turn on your computer, Windows Boot Manager will restore the system state from the file hiberfil.sys. The hibernation mode must be enabled for this computer, for example, by command powercfg /h on or by using the Windows Control Panel snap-in. Also, it must be taken into account that the implementation of this mode will require a large amount of free space on the hard disk for a copy of the RAM.

Shutdown /s /hybrid /t 0 hybrid shutdown, next boot will use fastboot

Parameter /hybrid shuts down your computer and prepares it for fast startup.
Must be used with the /s option

Shutdown /l end the current user's session. The end session command can only be executed on the local computer and only for the current user. Same as running the command log off without parameters.

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

The user will be warned about the planned shutdown.

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

After canceling the shutdown, a pop-up message will appear in the lower right corner of the screen.

Shutdown /r /m \\192.168.0.10 reboot the computer with the IP address 192.168.0.10

Shutdown /s /t 60 /m \\COMP1 turn off the computer COMP1 after 60 seconds

shutdown /s /t 60 /m \\192.168.0.10 turn off the power of the computer with the IP address 192.168.0.10 through 60 seconds.

Shutdown /g reboot and restore the execution of applications registered using the function API RegisterApplicationRestart. Usually used during system upgrades, when a reboot is required during the installation process to continue the installation process.

Shutdown /i start the graphical environment of the utility shutdown.exe. The screen displays

In the window Remote shutdown dialog to perform a shutdown, reboot or end user session operation, you must enter the name or IP address of the computer using the button Add, select the desired action, reason and fill in the field Note, the text from which will be displayed in the informational message about the scheduled action. For most reasons, the field Note is mandatory, and if it is not filled in, then the button OK will be inactive.

If no parameters are specified on the command line, or if the /? - then a brief help on using the command is displayed on the screen.

You can use -key instead of the syntax /key
Team shutdown can take the following parameters:
/i Displaying a graphical user interface.
This parameter must be the first.
/l Ending a session. This option cannot be used with
parameters /m or /d.
/s Shutting down the computer.
/r Complete shutdown and reboot of the computer.
/g Complete shutdown and reboot of the computer. Run all
registered applications after a system reboot.
/a Cancel system shutdown.
This option can only be used during the waiting period.
/p Shut down the local computer without delay or warning.
Can be used with parameters /d and /f.
/h Putting the local computer into hibernation mode.
Can be used with parameter /f.
/hybrid Shuts down the computer and prepares it for fast startup.
Must be used with parameter /s.
/e Specify the reason for the unexpected shutdown of the computer.
/o Go to the advanced boot options menu and restart your computer.
Must be used with parameter /r.
/m \\computer Specifying the target computer.
/txxx Specify a timeout in xxx seconds before shutting down the computer.
Valid range: 0-315360000 (10 years); default value: 30.
If the delay is greater than 0, the use of the parameter is implied. /f.
/c "comment"

Turning off the computer is a fairly typical procedure that rarely causes any difficulties for anyone. However, if you need to turn off the computer not right now, but after some time, then everything is a little more complicated. Now we will talk about how to turn off the computer after a certain time.

Turn off the computer after a certain time using the command line

The easiest option is to use the shutdown command. This command can be entered in, but the easiest way is to open the Run window (using the Windows-R key combination) and enter commands into it.

The shutdown command has many options. If you want to see them all, then run the "shutdown /?" command. We will consider only a few of the most important of them:

  • /s - shutdown:
  • /h - hibernate:
  • /f - forced closing of all open programs without warning the user;
  • /t - setting the timer in seconds;

So, in order to turn off the computer after a certain time, we need to execute the shutdown command with the parameters / s (shutdown the computer) and / t (set the timer). Thus, the final command to turn off the computer will look something like this:

  • shutdown /s /t 60

After executing this command, the computer will turn off after 60 seconds. Naturally, you can specify not 60 seconds, but any other time you need (in seconds). If necessary, you can use the shutdown command to restart the computer or put it into hibernation. To do this, change the /s option to /r (reboot) or /h (hibernate).

Turn off the computer after a certain time using the scheduler

Another option is to use the Task Scheduler. To start the Task Scheduler, open the Start menu and type "Task Scheduler" into the search box. You can also start the Task Scheduler by running the taskschd.msc command.

After starting the Task Scheduler, you need to create a new task and set it to turn off the computer after a certain time. To do this, click on the "Create a simple task" button.

After that, you will see a window for creating tasks. At the first stage, you just need to enter the task name and click on the "Next" button.

Next, you need to select the response frequency for our task. If you want to turn off the computer only once, then select "Once". If necessary, you can select the option "Daily" or any other.

The next step is to select the action that will be performed when the task is triggered. Here you need to select the option "Run the program".

After that, you need to enter the shutdown command and parameters for it. For example, let's enter the parameter / s (shutdown the computer) and the parameter / t (timer for 60 seconds).

This completes the creation of the task, at the last stage, simply click on the "Finish" button.

After that, the task you created will appear in the Scheduler Library.

Turn off the computer after a certain time using programs

You can also use specialized programs to turn off the computer after a certain time. For example, we will consider two popular programs of this kind.

Airytec Switch Off is a small system program that allows you to automatically turn off your computer at a certain time. This program has a small number of functions and a fairly simple interface. Thanks to this, anyone can cope with it. It should also be noted that this program has a web interface. This allows you to turn off your computer over a local network or even over the Internet.

Powerful computer shutdown program. This program has many settings, which allows you to adjust it to any task. Among the shortcomings of this program, one can single out perhaps a too confusing interface that can scare off inexperienced users.

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 state of the system 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 "Net". 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.

Top Related Articles