How to schedule shutdown Windows

There are several ways to schedule a Windows shutdown.

1) You can execute the command shown below in the “Run” window (it can also be opened with the WIN+R keys), also on the command line or the PowerShell, for all variants the command is the same:

shutdown –s –t 3600

Where 3600 is the number of seconds after which Windows will shut down and the computer will shut down.
3600 seconds = 1 hour.

Similarly, you can put the computer into hibernation mode if it is available:

shutdown –h –t 3600

To cancel a command, you must:

shutdown /a

2) The second way is to create a simple task in the task scheduler.
Open the Control Panel\System and Security\Administration\Task Scheduler.
Click “Create a simple task …”.
Enter any name for the new task, for example, “Shutdown.”
In the next window, select “Once.”
In the next window, we indicate the time when we need to complete the task.
In the next window, select “Run the program.”
In the line “Program or script:” we indicate the program:

C:\Windows\System32\shutdown.exe

and in the line “Add arguments (optional):” -s
Create a task.

Similarly, you can create a task such as sleep mode by entering “Program or script:” in the line:

C:\Windows\System32\rundll32.exe powrprof.dll,SetSuspendState Sleep

If you want to delete it, in the Task Scheduler window on the left click “Job Scheduler Library” and clicking the right button on the desired task, click “Delete”.

Подписаться на IT Blog (RU) по Email
Subscribe to IT Blog (EN) by Email

Did my article help you? How about buying me a cup of coffee as an encouragement? Buy me a coffe.

Leave a Reply