Automatically turn off your PC Windows 10 set time set scheduled, time

Automatically shut down your PC at a scheduled time, Windows 10

Read in: IT 🇮🇹   EN 🇺🇸

It can happen that, sometimes, you forget the PC turned on and remain in operation throughout the night. In this article, we see how to automatically shut down your PC at a scheduled time, setting up Windows 10 appropriately.

Subscribe my YouTube channel ValorosoIT. Retro technology, vintage audio, retro computers, experiments and tests. Retroprogramming, Basic. Commodore, IBM, Atari, Apple, Texas Instruments, Amstrad, MSX.

Let's also see how to avoid and cancel automatic shutdown If we were still working on the computer at the scheduled shutdown time.

Command shutdown to shut down the computer

Let's start with some theory. To shut down the computer, we use the command shutdown. The syntax that we analyze, for the command shutdown, is as follows:

shutdown /s /f /t 600 /c "Messaggio personalizzato!"

where:

  • the option /s indicates to turn off the computer (there are also other options for restarting and disconnecting the computer, but they are not relevant to our purpose);
  • /f forces the closure of all applications - be careful: data might be lost if we haven't saved our work before leaving the computer! Windows applies the option /f, automatically, if it is indicated a time later /t;
  • /t allows you to set a time, in seconds, after which the computer will automatically shut down (in this example, 600 seconds corresponds to 10 minutes);
  • /c it gives the ability to customize the computer shutdown message.

It is possible to test the command shutdown, at the command prompt. From Boot menu; start the Command Prompt, which is located in Windows system.

Windows 10 boot menu Windows System CMD Command Prompt

from the window that opens type the shutdown, with all the options listed above.

Automatically turn off the PC Windows 10 set time, shutdown /s /f /t /c -s -f -t -c

Windows shows the custom warning message and the computer shuts down 10 minutes after the command is executed.

Automatically turn off your Windows 10 PC now set, shutdown s f t c blue message you are about to be disconnected

Some applications, which support functionality, allow you to automatically recover the document not saved when arresting the system.

Automatically shut down your PC at a scheduled time

But how do you automatically turn off your PC at a scheduled time, for example at 22:30?

Follow me on Instagram channel. Retro technology, Commodore, vintage audio, retro computers, experiments and tests. Retroprogramming, Basic. Commodore, IBM, Atari, Apple, Texas Instruments, Amstrad, MSX.

It is very simple. To automatically turn off the computer at one hour set, the command must be included shutdown, with all the options indicated above, within theScheduler.

From the Boot menu, start theScheduler, which is located in Windows administration tools.

Windows 10 Start menu, Scheduling Utility, Windows Administrative Tools

Set up an activity in theScheduler to turn off the computer at a set time

To automatically turn off the computer at the established time, a new activity must be created. From the window of theScheduler, we click on Create activities.

Utility scheduling Windows 10, Create new task, Automatically turn off the PC Windows 10 set time, automatically turn off the computer at a set scheduled time defined

A new window opens: Create activities. Assegnare un nome all'attività, ad esempio: "Spegnimento automatico del computer". Selezionare l'opzione: Run regardless of users' connection. In fact, the automatic shutdown of the computer at the set time must take place independently of the fact that we forgot the open session, or that we are disconnected.

Windows 10 Scheduling Utility, General, Name, Run Regardless of Users' Connection

We set the trigger condition of our planned action. Click on the table Activation, then click New.

Windows 10 scheduling utility, Create task, Activate, New, turn off the computer at a set scheduled time defined set set

From the window New activation, we set the time to automatically turn off the PC. As a start date, enter the current day. Select the option Daily. Given that the planned operation is activated: checkbox must be sprouted Activated. To confirm, you can press the Ok.

Windows 10 scheduling utility, Create task, Activation, New daily activation time date time activated

From the table, we can therefore verify that the activity has been planned correctly. We must not press Ok, in this window, but continue setting the other table tables.

Utility scheduling Windows 10, Create task, Activation, Summary of activation details every day turn off pc now set scheduled defined, turn off the computer automatically

We enter the command shutdown nell'Scheduler

We click on Actions, then click New.

Schedule utility Windows 10, Create task, Actions, New, Task, Automatically turn off your PC at a set time

The new action we set is the command itself shutdown. From the menu OperationChoose Program start. Next, we type shutdown in the text field Program or script. All the arguments and options that we have listed before, must be entered in the Add arguments (optional). For our goal, i.e. automatically turn off the PC at a scheduled time, the arguments are mandatory, and not optional.

To avoid typing mistakes, you can copy/paste texts.

Program or script:

shutdown

Add arguments:

Follow me on Instagram channel. Retro technology, Commodore, vintage audio, retro computers, experiments and tests. Retroprogramming, Basic. Commodore, IBM, Atari, Apple, Texas Instruments, Amstrad, MSX.

/s /f /t 600 /c "Il computer sta per essere arrestato. Utilizzare l'icona sul desktop per annullare lo spegnimento!"

Press Ok to confirm the data just entered.

Schedule utility Windows 10, Create task, Actions, New task, shutdown program or script, add arguments, automatically turn off the PC at a set time, computer, scheduled time, set time

From the table, we can therefore verify that the action has been inserted correctly. Here too, we must not press Ok, but continue setting the other tables of the activity.

Windows 10 Scheduling Utility, Create Task, Actions, Task Summary Details

Automatically turn off the PC at a scheduled time: if we were still working?

We click on the table Conditions. The first option from which we must remove the check is: Start the activity only if the computer is powered by the electricity network. In fact, if we are using a laptop, we would like it to turn off automatically even (and above all) if it is battery powered.

In addition, we can indicate to turn off the computer only if the computer has been idle for 10 minutes (or from a settable time). If we were working, the computer would wait for the idle state even for 1 hour (this time is also settable) before turning off automatically. To automatically turn off the computer at a set time, only if the computer is idle, click on: Start the activity only if the computer is inactive.

Windows 10 planning utility, creates activities, conditions, starts the activity only if the computer is inactive for, only if the computer is powered by the electrical network, turn off the computer automatically if I don't use it

If, on the other hand, we still want to turn off the computer regardless of the state of use (remember that later I will explain how to create an icon on the desktop to cancel the automatic shutdown of the PC), we remove the check from: Start the activity only if the computer is inactive.

Automatically turn off the PC at a set scheduled time defined set, conditions, starts the activity only if the computer is inactive for, only if the computer is powered by the electricity network

Again, we don't click on Ok, but let's continue on the next table: Settings. Uncheck: Stop if done for longer. Finally we can press Ok to save our planned task!

Windows 10 scheduling utility, Create task, Settings, Stop if followed for further, allow on-demand task execution

It may be that the computer requires the entry of the password. Type the user's password and click on Ok.

Windows 10 scheduling utility, Create new task, Enter administrator password

Optimal! The planned operation to automatically turn off the computer at a certain time set, is now active and functioning. You can find it by clicking on Task Scheduler Library, along with other tasks that are already scheduled.

Follow me on Instagram channel. Retro technology, Commodore, vintage audio, retro computers, experiments and tests. Retroprogramming, Basic. Commodore, IBM, Atari, Apple, Texas Instruments, Amstrad, MSX.

Automatically turn off the PC at a set time, scheduled tasks, schedule utility libretia

Modify or Delete the scheduled automatic shutdown of the PC at a set time

If you change your mind and want to cancel the settings you just made, no problem. You can delete the scheduled operation for the automatic shutdown of the computer. By clicking on Task Scheduler Library, you will find, in the list, the task we just set.

Through the right mouse button, we can decide to click on Property, to modify the task, rather than on Elimination to delete it.

Automatically turn off the PC at a set scheduled time, scheduled tasks, schedule utility libretia, property, delete action

The same commands Property and Remove is available at the bottom right. Changing the properties of the scheduled operation can be useful, for example, to change the set time for automatically shutting down the computer.

Automatically turn off the PC at a scheduled time: the test!

To make a test, you can safely set up a shutdown time within ten minutes from current time. Also take into account that if you have set up not to turn off the PC if you are still using it, you will have to plan a fater time.

Reached the scheduled timetable, after the 10 minutes in which we can change your mind (set with the option 600 /t in command shutdown) the computer shows the shutdown screen. This is the shutdown screen of the computer when you are disconnected.

Automatically turn off the Windows 10 PC now set defined scheduled, shutdown of the computer being disconnected.jpg

This, on the other hand, is the shutdown screen if you are logged in to your account.

Automatically turn off the PC Windows 10 now set scheduled defined set, blue message you are about to be disconnected

Avoid automatic computer shutdown at the set time

Now let's see the command to cancel the automatic shutdown of the computer, if theScheduler had already started the business.

The command to type to cancel the automatic shutdown of the computer is:

Subscribe my YouTube channel ValorosoIT. Retro technology, vintage audio, retro computers, experiments and tests. Retroprogramming, Basic. Commodore, IBM, Atari, Apple, Texas Instruments, Amstrad, MSX.

shutdown /a

From the Command Prompt, you can try the shutdown /a after typing the power off command.

shutdown to how to cancel the shutdown of the pc computer Windows 10, shutdown /a -a, cmd command prompt

We can create an icon on the desktop containing the program to cancel the automatic shutdown of the computer at the set time. By right-clicking on an empty area of the desktop, select New and then Connection.

How to create a new shortcut on the Windows 10 desktop

The window opens to create a new link. In the text box Enter the path for the link, type the command:

shutdown /a

Then continue, by clicking on Forward.

Cancel avoid turning off the computer shutdown / a -a create a shortcut on the desktop

Digitare il nome che vogliamo assegnare al collegamento, ad esempio: "Annulla spegnimento PC". Infine, cliccare su Done.

Cancel, avoid shutting down computer shutdown -a /a creates a shortcut on the desktop, enter the name of the shortcut

Here is the shortcut created on our desktop! If the computer is about to shut down automatically at the scheduled time, we have 10 minutes to click this shortcut and cancel the automatic shutdown.

By clicking on the new link with the right mouse button, we can view the PropertyFrom this window, we can also change the icon for the shortcut.

Cancel avoid shutting down computer shutdown /a -a shortcut property on the desktop, change shortcut icon

In conclusion

We learned how to use the command shutdown to turn off the computer.

Follow me on Instagram channel. Retro technology, Commodore, vintage audio, retro computers, experiments and tests. Retroprogramming, Basic. Commodore, IBM, Atari, Apple, Texas Instruments, Amstrad, MSX.

Next, we saw how to bind the command shutdown to scheduled tasks, to automatically turn off the PC at a scheduled time.

Finally, we have seen how to cancel the automatic shutdown of the computer.

Surely, we will no longer forget the computer turned on all night!

Subscribe my YouTube channel ValorosoIT. Retro technology, vintage audio, retro computers, experiments and tests. Retroprogramming, Basic. Commodore, IBM, Atari, Apple, Texas Instruments, Amstrad, MSX.

Posted in Computers and Technology, All articles.

Leave a Reply

Your email address will not be made public. Mandatory fields are indicated *