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

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

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 | Übersetzung Deutsch |🔔 | Comments:0

Apply Office 365 latest updates: latest status. | Windows | Open Windows registry offline

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 video, se...

the 4 best tools to compare two text files

Anyone who frequently creates scripts or analyzes log files and handles different versions can compare them very quickly with the help of the right editor. 

install driver via command line cmd: inf

Windows drivers can of course also be managed via the command line. Microsoft offers two different tools for this purpose: The PnPUtil integrated in Windows and as part of the Windows Driver Kit (WDK) the command: devcon.

Questions / Comments

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