The steps come from Microsoft's Task Scheduler and schtasks documentation and Windows Central's Task Scheduler walkthrough, all checked on 25 November 2026.
Task Scheduler is built into Windows and remains one of the most useful tools tucked away in Windows 11. Microsoft describes it simply: it lets you automatically perform routine tasks by watching for criteria you choose, called triggers, and then running the task when they're met. For a PC owner that might mean running a backup script every night, starting a monitoring app a minute after you sign in, or launching a maintenance job when the PC has been idle for a while.
This guide covers the three ways to create a task: the Create Basic Task wizard, the full Create Task window and the schtasks command. It also explains how to test and remove tasks safely.
Triggers and actions: the two parts of every task
Every scheduled task combines at least one trigger (when it runs) with an action (what it does).
Microsoft lists these trigger types:
At a specific time, once
Daily, weekly or monthly at a set time, or on a monthly day-of-week schedule (for example, the first Monday)
When the system starts (boots)
When a user logs on
When the computer enters an idle state
When a specific system event occurs (an entry in the event log)
When the task is registered, or when a Remote Desktop (Terminal Server) session changes state
A single task can have more than one trigger, up to a maximum of 48, so one task can run both at startup and every evening if you want it to.
For actions, the one you'll use is Start a program, which can launch an app, run a command or run a script. Windows Central notes that the old Send an e-mail and Display a message actions are deprecated, so they may or may not work and you shouldn't rely on them.
Method 1: Create a simple task with the Basic Task wizard
The wizard is the quickest way to set up a task with one trigger and one action.
Open Start, search for Task Scheduler and open it.
In the left pane, right-click Task Scheduler Library and choose New Folder. Give it a name such as MyTasks. This step is optional, but keeping your own tasks in one folder separates them from the many tasks Windows and your apps create.
Select your new folder, open the Action menu and choose Create Basic Task.
Give the task a clear Name (for example, Nightly backup) and, optionally, a Description. Select Next.
Choose a trigger. The wizard offers time-based options such as Monthly (the one Windows Central uses in its example) as well as triggers for when the computer starts or when you sign in. Select Next.
For time-based triggers, set the start date and time, plus the days or months if needed. Select Next.
Choose Start a program and select Next.
In Program/script, enter the path to the app or script, or use Browse. Use Add arguments for any command-line options, and leave Start in empty unless the program needs a specific working folder.
Select Finish.
The task is saved and will run at the next matching trigger.
Method 2: Create an advanced task with Create Task
The full Create Task window gives you every option, including multiple triggers, delays and power conditions.
Select your task folder and choose Action > Create Task.
General tab: name the task and choose how it runs. Run whether user is logged on or not stops a Command Prompt or PowerShell window appearing when the task runs, and Run with highest privileges is for tasks that need administrator rights. Leave Configure for alone unless you need a different compatibility setting.
Triggers tab: select New and pick an option from Begin the task, such as On a schedule, At startup or On workstation unlock. The Advanced settings section lets you delay, repeat, stop or expire the task. Add more triggers if you need them.
Actions tab: select New, keep Start a program and fill in Program/script, Add arguments and, if needed, Start in. For a PowerShell script, Windows Central's example uses powershell.exe as the program with the script path in the arguments.
Conditions tab: these settings work alongside the triggers to decide when the task runs. Windows Central's advice is to make sure the Power settings suit your situation, which matters most on a laptop. If your PC keeps waking up at night, scheduled tasks are one possible cause; see our guide to stopping a PC waking from sleep.
Settings tab: Windows Central recommends turning on Run task as soon as possible after a scheduled start is missed, so a nightly job still runs if the PC was off, and If the task fails, restart every with the default values.
Select OK and enter your account password if asked.
Method 3: Create tasks from the command line with schtasks
The schtasks command can create, change, run, query, end and delete tasks, which is handy if you want to save your setup in a script or recreate it after reinstalling Windows. Open Command Prompt or Terminal; use Run as administrator if the task needs elevated rights.
Microsoft's documentation includes examples like these (we've changed the task names and paths to show typical home uses):
schtasks /create /tn "Nightly backup" /tr C:\Scripts\backup.bat /sc daily /st 23:00
schtasks /create /tn "Start monitor" /tr C:\Apps\monitor.exe /sc onstart
schtasks /create /tn "Fortnightly job" /tr C:\Apps\job.exe /sc weekly /mo 2 /d FRI
schtasks /create /tn "Idle job" /tr C:\Apps\job.exe /sc onidle /i 10
Useful extra switches from Microsoft's reference:
/rl highest runs the task with the highest privileges, while /rl limited runs it with the least privileges, which is enough for most jobs.
/delay waits before running after the trigger, in mmmm:ss format, and only works with the ONSTART, ONLOGON and ONEVENT schedule types. For example, /sc onlogon /delay 0001:00 waits one minute after sign-in.
/f creates the task and suppresses the warning if a task with that name already exists.
To manage tasks afterwards, schtasks /run /tn "Nightly backup" starts a task immediately (ignoring its schedule), schtasks /query lists scheduled tasks, schtasks /end stops a program started by a task, schtasks /change alters things like the program or account a task uses, and schtasks /delete removes it.
If you prefer PowerShell, the ScheduledTasks module does the same job: Microsoft's documented pattern builds a trigger with New-ScheduledTaskTrigger and an action with New-ScheduledTaskAction, then registers both with Register-ScheduledTask. Our PowerShell 7 vs Windows PowerShell explainer covers which shell to use.
Test, edit and remove tasks
Test straight away. In Task Scheduler, right-click the task and choose Run. If the script works when run manually but not as a task, check the account, the Start in folder and whether the script uses relative paths.
Check the details. Selecting a task shows its triggers and when it last ran and will next run.
Edit or delete. Right-click the task and choose Properties to edit it or Delete to remove it, or use the Actions pane on the right to run, end, disable or edit it.
Investigate failures. If a task doesn't behave, our Event Viewer guide explains how to search Windows' logs for related errors. Event Viewer is also where you find the event details if you want to use an event as a trigger.
Good jobs to automate on a gaming or work PC
Nightly file copies. Pair Task Scheduler with a Robocopy script from our Robocopy guide to mirror a projects folder to a second drive. For full system images and versioning, use dedicated software from our best free backup software list instead.
Delayed start-up apps. Rather than letting every app launch at once when you sign in, start less important ones with an at-log-on trigger and a short delay.
Regular maintenance scripts. Scripts that clear a temporary folder or log hardware information can run weekly.
Be careful with anything that deletes files: test it by hand first, and avoid editing or removing tasks that Windows or your apps created in the other Task Scheduler Library folders unless you know what they do.
Our verdict
Task Scheduler is the simplest way to make Windows 11 do routine jobs for you without installing anything. Use the Create Basic Task wizard for a single schedule, the full Create Task window when you need multiple triggers, delays, privileges or power conditions, and schtasks or PowerShell when you want tasks you can recreate with one command. Keep your tasks in their own folder, test each one with Run, and turn on the option to run missed tasks so jobs still happen when the PC was off.