|

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

GoalUse this
Run one program on a simple scheduleCreate Basic Task wizard
Control conditions, privileges and repeat settingsCreate Task dialog (General, Triggers, Actions, Conditions, Settings tabs)
Create a task from a script or shortcutschtasks /create in a command prompt
Check or change a task laterTask 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

  1. Select the folder where the task should live in the left pane.
  2. In the Actions pane, select Create Basic Task.
  3. Type a name and an optional description, then select Next.
  4. Pick a trigger (see the table below) and select Next.
  5. Set the start date and time if the trigger asks for them, then select Next.
  6. Choose Start a program as the action and select Next.
  7. Enter the program or script in Program/script, using Browse if you prefer.
  8. Add Add arguments or Start in only if the program needs them.
  9. 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.

TriggerWhen it runs
On a scheduleOnce, or daily, weekly or monthly
At log onWhen a user signs in, either any user or a specific one
At startupWhen the computer starts
On idleAfter the computer becomes idle
On an eventWhen matching entries appear in an event log
At task creation/modificationWhen the task is created and whenever it is changed
On connection to or disconnect from user sessionWhen a session connects or disconnects, locally or over Remote Desktop
On workstation lock or unlockWhen 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

  1. In the Actions pane, select Create Task.
  2. On the General tab, enter a name and the general properties.
  3. On the Triggers tab, select New and fill in the New Trigger dialog.
  4. On the Actions tab, select New and fill in the New Action dialog.
  5. Set the optional Conditions and Settings tabs.
  6. Select OK.

Microsoft lists these exact tabs on its Task Scheduler page for creating tasks.

Advanced trigger settings

SettingWhat 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 everyRuns the task again at a set interval until the duration ends
Stop any task that runs longer thanStops the task when it goes over a time limit
ActivateDate and time when the trigger becomes active
ExpireDate and time after which the trigger no longer starts the task
EnabledA disabled task cannot run until you turn it back on

Task conditions

Conditions are extra checks that must be true when the trigger fires.

ConditionMeaning
IdleRun only if the computer has been idle for a set time
Stop if the computer ceases to be idleStops a running task when you return
Restart if idle state resumesStarts the stopped task again at the next idle period
Power: run only on AC powerSkips the task on battery
Wake the computer to run the taskWakes the PC from sleep when the trigger fires
NetworkRuns only if a network connection is available

Microsoft says Task Scheduler checks idle status every 15 minutes.

Task settings

SettingMeaning
Allow task to be run on demandLets you start the task by hand
Run task as soon as possible after a scheduled start is missedStarts the task after the PC was off at the scheduled time
If task fails, restart everyRetries the task at a set interval
Stop the task if it runs longer thanLimits how long it can run
If the task does not end when requested, force it to stopForces a stuck task to stop
If the task is already running, then the following rule appliesDo 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.

ParameterWhat it sets
/tnTask name, up to 238 characters, unique on the PC
/trProgram, script or batch file to run, with its full path
/scSchedule type: MINUTE, HOURLY, DAILY, WEEKLY, MONTHLY, ONCE, ONSTART, ONLOGON, ONIDLE or ONEVENT
/stStart time in 24-hour HH:mm format, required for ONCE
/ruAccount to run as; system uses the local System account
/rlLIMITED (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

Leave a Reply

Your email address will not be published. Required fields are marked *