
In the task creation wizard, enter a meaningful name & description, and click “ Next.” Search for “ Task Scheduler” in the start menu and open it.Ĭlick the “ Create basic task” option in the Task Scheduler main window.
With that, you scheduled a shutdown with the task scheduler. Type “ /s” in the “ Add arguments” field. Type “ shutdown.exe” in the “ Program/script” field. If you want Windows to automatically shut down at a specific time every day or regular intervals, then you can schedule a shutdown using Task Scheduler. There will be no cancelation option to abort the shutdown. Once the timer runs out, it will display a warning asking you to save your work as the system is shutting down in a few seconds. shutdown -s -t timeInSecondsįor example, if you want to auto shutdown Windows after 60 minutes, then the command will be shutdown -s -t 3600.Īs soon as you execute the command, Windows will schedule a shutdown and displays a notification of the same. Replace “timeInSeconds” with the number of seconds. In the PowerShell or Command Prompt window, execute the below auto shutdown command. In Windows 10 and 11, you can use the Windows Terminal.
I’m using PowerShell, but you can use Command Prompt too. To set a Windows shutdown timer, search for PowerShell or Command Prompt and open it. With that, you scheduled a shutdown in Windows.
Use the below command while replacing “timeInSeconds” with the actual number of seconds.Here’s the command to schedule a shutdown in Windows. For instance, you can use this tip to limit how long your children can use the system. This method is helpful when you have to set a shutdown timer to auto shutdown Windows spontaneously. Though Windows has no visible option, you can schedule and auto shutdown Windows with a single PowerShell or Command Prompt command.