Windows 11 & Windows 10: Press ⊞ Win+S to open the search bar, type task scheduler, and then click Task Scheduler in the search results. Windows 8: Press the ⊞ Win key, type schedule tasks, and then click Schedule tasks in the results. Windows 7: Click the Start menu, select Control Panel, and then choose System and Security. Click Administrative Tools and then click Task Scheduler.

Leave the “Recur ever: X days” setting to “1” if you want the action to occur every day.

If you need to edit or delete your task, open Task Scheduler and click the Task Scheduler Library folder in the left panel. When you find your task in the center panel, right-click it to find the option to edit Properties or Delete the task.

If prompted to give permission for the app to run, follow the on-screen instructions to do so.

For example, if you want the computer to turn off in 30 minutes, you’d type SHUTDOWN /S /T 1800. Check out this Google tool that can help you convert minutes and/or hours to seconds.

If you want to cancel the automatic shutdown, return to the prompt and use the command shutdown /a.

Use this method if you don’t want to schedule a recurring shutdown (e. g. , nightly at 11:30pm) but would like to quickly schedule such a shut down if necessary.

Use this method if you don’t want to schedule a recurring shutdown (e. g. , nightly at 11:30pm) but would like to quickly schedule such a shut down if necessary.

Use this method if you don’t want to schedule a recurring shutdown (e. g. , nightly at 11:30pm) but would like to quickly schedule such a shut down if necessary.

@echo off :W if %time%==23:30:00. 00 goto :X goto :W :X shutdown. exe /s /f /t 60 /c This script will constantly check the time and, when 11:30 PM rolls around, will shut down the computer (after a 60-second grace period). You can replace that time with the time of your choice (in 24-hour/military time format).

If you want to disable the script before it’s time to shut down, press ⊞ Win+R to open the Run menu, type shutdown –a, and then click Run.