Shut down Windows 10 automatically - turn off PC [Time].

Diese Seite gibt es auch in Deutsch

By entering the Shutdown command, the PC can be shut down after a certain time without any additional program.

Shutdown command

To do this, start the command prompt using the command CMD in the search field and enter the following command:

shutdown -s -t 90

-s means: shutdown

-t 90 : in 90 seconds

After entering the command, the message: you will be logged off shortly will appear:

other parameters:

"shutdown -h" puts the computer into sleep mode

the parameter "-f" forces the shutdown, if it is not possible with the normal variant.

shutdown-r -t 90 -f

Forces restarting the computer

Shut down or restart PC after a certain time

To shut down or restart the PC after a certain time has elapsed, the -t parameter and the waiting time in seconds can be used with the shutdown command described. As an alternative the action can be scheduled using task scheduling as described below.

Shutting down another computer via GUI

By entering the shutdown -i command, computers can be shut down via command prompt if the user has the appropriate permissions:

Scheduling the restart or shutdown

With the help of the task scheduling, the restart or shutdown can be scheduled at a certain time:

Either via PowerShell, see www.script-example.com/en-powershell-schedule

or directly in the task scheduler:

Program/Script: C:\Windows\System32\shutdown.exe

Argument "-r -t 30" restarts the computer after a waiting time of 30 seconds

Argument "-h -t 30" shuts down the computer after waiting 30 seconds

Change user to "System

At the scheduled time, this message will appear on the screen:

Cancel shutdown

If the shutdown of a PC has been scheduled, the process can be aborted before the specified time has elapsed. To do this, issue the following command at the command prompt:

shutdown -a

positive Bewertung({{pro_count}})
Rate Post:
{{percentage}} % positive
negative Bewertung({{con_count}})

THANK YOU for your review!

Publication: 2022-11-15 from Bernhard 🔔


Top articles in this section


Windows : create a missing recovery partition
When cloning a large hard disk to a smaller one, I lost the recovery partition. So far not bad, Windows works without recovery partition, but in case of an error the partition helps to get the PC up and running again. To summarize, here's how it works with the recovery partition: As long as the partition is still there, it can be deactivated and written to a file. If the partition gets lost unexpectedly, it can be recovered from the Windows setup media. This post is also available as a vide...

Windows 11 22H2 (Build: 22621.900) : show current version
Build means the kernel version of Windows. How current the Windows 10 or Windows 11 installation is, can be seen by the build number used.

Windows 11 (10) without Microsoft Account : local - Offline Profile
Not everyone wants to use a Microsoft account when using Windows. Depending on the Windows edition, an offline account can be set up more or less easily. In the new Windows Pro editions, there is the option "Offline account", in the Windows Home editions, an offline account can only be set up if there is no Internet connection. In future Windows versions, the behavior could probably change.

Questions / Comments


By continuing to browse the site, you agree to our use of cookies. More Details