How To Create A Scheduled Task In Windows 11 (2026)
Short answer: open Task Scheduler, select Create Basic Task in the Actions pane, and follow the wizard.
Give the task a name, pick a trigger such as daily or at log on, then choose Start a program and enter the program or script to run.
Select Finish and Windows will run that program on your schedule.
Quick answer: which method to use
| Goal | Use this |
|---|---|
| Run one program on a simple schedule | Create Basic Task wizard |
| Control conditions, privileges and repeat settings | Create Task dialog (General, Triggers, Actions, Conditions, Settings tabs) |
| Create a task from a script or shortcut | schtasks /create in a command prompt |
| Check or change a task later | Task Scheduler Library, then right-click the task |
Open Task Scheduler
Search for Task Scheduler in the Start menu and open it.
The left pane holds the Task Scheduler Library, and the Actions pane on the right holds the commands used below.
Microsoft’s task documentation says to click the task folder where you want the task before you create it.
Create a basic task
- Select the folder where the task should live in the left pane.
- In the Actions pane, select Create Basic Task.
- Type a name and an optional description, then select Next.
- Pick a trigger (see the table below) and select Next.
- Set the start date and time if the trigger asks for them, then select Next.
- Choose Start a program as the action and select Next.
- Enter the program or script in Program/script, using Browse if you prefer.
- Add Add arguments or Start in only if the program needs them.
- Review the summary and select Finish.
Windows Central notes that the Send an e-mail and Display a message actions are deprecated, so use Start a program.
Microsoft says the basic wizard sets most properties to defaults, so use the longer dialog when you need more control.
Triggers you can choose
A trigger decides when the task starts, and a task with several triggers starts when any one of them happens.
| Trigger | When it runs |
|---|---|
| On a schedule | Once, or daily, weekly or monthly |
| At log on | When a user signs in, either any user or a specific one |
| At startup | When the computer starts |
| On idle | After the computer becomes idle |
| On an event | When matching entries appear in an event log |
| At task creation/modification | When the task is created and whenever it is changed |
| On connection to or disconnect from user session | When a session connects or disconnects, locally or over Remote Desktop |
| On workstation lock or unlock | When the computer is locked or unlocked |
Times follow the computer’s time zone unless you select the Universal check box.
Create a task with more options
- In the Actions pane, select Create Task.
- On the General tab, enter a name and the general properties.
- On the Triggers tab, select New and fill in the New Trigger dialog.
- On the Actions tab, select New and fill in the New Action dialog.
- Set the optional Conditions and Settings tabs.
- Select OK.
Microsoft lists these exact tabs on its Task Scheduler page for creating tasks.
Advanced trigger settings
| Setting | What it does |
|---|---|
| Delay task for up to (random delay) | Waits after the trigger fires, so a 1:00 pm trigger with a 5-minute delay runs between 1:00 and 1:05 pm |
| Repeat task every | Runs the task again at a set interval until the duration ends |
| Stop any task that runs longer than | Stops the task when it goes over a time limit |
| Activate | Date and time when the trigger becomes active |
| Expire | Date and time after which the trigger no longer starts the task |
| Enabled | A disabled task cannot run until you turn it back on |
Task conditions
Conditions are extra checks that must be true when the trigger fires.
| Condition | Meaning |
|---|---|
| Idle | Run only if the computer has been idle for a set time |
| Stop if the computer ceases to be idle | Stops a running task when you return |
| Restart if idle state resumes | Starts the stopped task again at the next idle period |
| Power: run only on AC power | Skips the task on battery |
| Wake the computer to run the task | Wakes the PC from sleep when the trigger fires |
| Network | Runs only if a network connection is available |
Microsoft says Task Scheduler checks idle status every 15 minutes.
Task settings
| Setting | Meaning |
|---|---|
| Allow task to be run on demand | Lets you start the task by hand |
| Run task as soon as possible after a scheduled start is missed | Starts the task after the PC was off at the scheduled time |
| If task fails, restart every | Retries the task at a set interval |
| Stop the task if it runs longer than | Limits how long it can run |
| If the task does not end when requested, force it to stop | Forces a stuck task to stop |
| If the task is already running, then the following rule applies | Do not start a new instance, run one in parallel, queue it, or stop the existing instance |
Microsoft says the missed-start option waits ten minutes by default before it starts the task.
Run the task with the right account
Under Security options on the General tab you choose the account that runs the task.
Windows Central says that for command-line or PowerShell tasks, Run whether user is logged on or not keeps a console window from appearing.
Select Run with highest privileges only for a task that needs elevated rights.
The same two levels exist on the command line as the LIMITED and HIGHEST values of the /rl parameter.
Create the same task from the command line
Open a command prompt, or open Terminal as administrator if the task needs it, and run schtasks with /create.
| Parameter | What it sets |
|---|---|
| /tn | Task name, up to 238 characters, unique on the PC |
| /tr | Program, script or batch file to run, with its full path |
| /sc | Schedule type: MINUTE, HOURLY, DAILY, WEEKLY, MONTHLY, ONCE, ONSTART, ONLOGON, ONIDLE or ONEVENT |
| /st | Start time in 24-hour HH:mm format, required for ONCE |
| /ru | Account to run as; system uses the local System account |
| /rl | LIMITED (default) or HIGHEST |
These two examples follow the shape of the examples on Microsoft’s schtasks page.
schtasks /create /tn MyApp /tr c:\apps\myapp.exe /sc weekly /d TUE schtasks /create /tn MyApp /tr c:\apps\myapp.exe /sc onstart
Replace the program path and name with your own.
Run, edit, disable or delete a task
- To test it, right-click the task and select Run.
- To change it, right-click the task and select Properties.
- To pause it, select the task and use Disable in the Actions pane.
- To remove it, right-click the task and select Delete.
For other quick launchers, see the Windows 11 keyboard shortcuts list.
Sources
- Microsoft: Schedule a Task (archived Windows Server documentation)
- Microsoft: schtasks create
- Windows Central: create an automated task with Task Scheduler