Quantcast
Channel: Help & How To
Viewing all articles
Browse latest Browse all 5861

Create and run tasks on Windows 11

$
0
0

Windows 11 Schedule Task

You can automate routine tasks with the Task Scheduler, and in this guide, we'll show you how on Windows 11.

On Windows 11, Task Scheduler is an application that makes it easy to create and run routines automatically on your computer. For example, you can create tasks to run commands, scripts, and programs at a specific date or when a condition is met.

The app monitors the time and events occurring on Windows 11 and triggers a task as soon as the condition is matched. The system and many apps already use Task Scheduler to automate maintenance routines (such as for updates and storage maintenance). You can use it to create basic and advanced tasks to perform different actions at a specific time or when an event happens.

In this Windows 11 guide, we'll walk you through the steps to get started with the Task Scheduler experience to automate tasks on your device.

How to create a basic task using Task Scheduler

To create a basic automated task on Windows 11, use these steps:

  1. Open Start.
  2. Search for Task Scheduler, and click the top result to open the app.
  3. Right-click the "Task Scheduler Library" branch, and select the New Folder option.

    Task Scheduler create new folder

  4. Type a name for the folder — for example, MyTasks.

    Quick note: This step is recommended to keep the tasks separate from the system and apps tasks.

  5. Click the OK button.
  6. Expand the "Task Scheduler Library" branch, and select the MyTasks folder.
  7. Click the Action menu and choose the Create Basic Task option.

    Windows 11 Create Basic Task

  8. Type a short descriptive name for the task, for example, Notepad Launcher, in the "Name" field.

    Basic task information

  9. (Optional) Compose a description for the task in the "Description" field.
  10. Click the Next button.
  11. Select the Monthly option.

    Task monthly trigger

    Quick note: Task Scheduler includes a number of triggers, including on a specific date, during startup, or when you or a particular user signs in. Depending on the trigger, you'll need to configure additional parameters. In this case, we'll select the option to run a task every month.

  12. Click the Next button.
  13. Specify when the task should start running and the time using the "Start" setting.
  14. Select the months of the year to run the task using the "Monthly" drop-down menu.

    Task schedule settings

  15. Specify the days the task will run using the "Days" or "On" drop-down menus.

    Basic task day scheduleQuick Tip: Using the "On" setting is your option if you plan to run a task during a specific day of the week.

  16. Click the Next button.
  17. Select the Start a program option to launch an app, run a command, or execute a script file.

    Basic task start program

    The Send an e-mail or Display a message options are deprecated features. You can still use them, but they may not work.

    • Send an e-mail: Triggers an email notification with a custom message on schedule, but it requires to specify an email server to work.
    • Display a message: Displays a text message on the screen on schedule.
  18. Click the Next button.
  19. Specify the path for the app in the "Program/script" field.

    Basic task path to program or script

    Quick Tip: If you don't know the path of the app, click the Browse button to find it.

  20. (Optional) Specify the arguments to run the task with special instructions in the "Add arguments" field.
  21. (Optional) Specify the folder in which the program will start in the "Start in" field.
  22. Click the Finish button.

Once you complete the steps, the system will create and save the task, and it'll run automatically on the schedule.

How to create an advanced task using Task Scheduler

To create an advanced task setting with the Task Scheduler on Windows 11, use these steps:

  1. Open Start.
  2. Search for Task Scheduler, and click the top result to open the app.
  3. Right-click the "Task Scheduler Library" branch, and select the New Folder option.

    Task Scheduler create new folder

  4. Type a name for the folder — for example, MyTasks.
  5. Click the OK button.
  6. Expand the "Task Scheduler Library" branch, and select the MyTasks folder.
  7. Click the Action menu and choose the Create Task option.

    Task Scheduler create advanced task

  8. Type a short descriptive name for the task, for example, My PowerShell Script, in the "Name" field.

    Create Task Advanced Settings

  9. (Optional) Compose a description for the task in the "Description" field.
  10. In the "Security options" section, configure the administrator account to run the task.

    Task Security Options

    Quick Tip: If you use an admin account, the default user should do the job. If you want to run a Command Prompt or PowerShell command, select the Run whether user is logged on or not option to prevent the command window from displaying when the task runs automatically.

  11. (Optional) Check the Run with highest privileges option if the task requires elevated privileges.
  12. The "Configure for" settings should be left alone unless required.
  13. Click the Triggers tab.
  14. Click the New button.

    Create new trigger

  15. Use the "Begin the task" drop-down menu to select one of the many triggers — for example, On a schedule.
  16. Specify when the task should start running and the time using the "Start" setting.
  17. Select the Monthly option from the left side.
  18. Select the months to run the task using the "Months" drop-down menu.

    Schedule task on Windows 11

  19. Specify the days to run the task using the "Days" or "On" drop-down menus.

    Task Scheduler day to run task

  20. (Optional) In the "Advanced settings" section, select options to delay, repeat, stop and expire a task.

    Windows 11 task advanced settings

  21. Check the Enabled option (if applicable).
  22. Click the OK button.
  23. Click the Action tab.
  24. Click the New button.

    Create actions on new task

  25. Select the Start a program option using the "Action" drop-down menu.
  26. Under the "Settings" section, in the "Program/script" field, specify the path for the application — for example: powershell.exe.

    Task start a program settings

    Quick Tip: If you don't know the path of the app, click the Browse button to find it. Also, if it's a known program like PowerShell or Command Prompt, you only need to specify the name of the executable.

  27. (Optional) Specify arguments to run with the task in the "Add arguments" field — for example: -NoExit -ExecutionPolicy Bypass C:\PATH\TO\SCRIPT\first_script.ps1.

    Quick note: The "powershell.exe" command and the above argument will run the script named "first_script.ps1." The argument "-ExecutionPolicy Bypass" ensures that the script runs successfully, and the "-NoExit" argument will prevent the window from closing after running the script.

  28. (Optional) Specify the folder in which the program will start in the "Start in" field.
  29. Click the OK button.
  30. Click the Conditions tab.
  31. (Optional) In the "Conditions" tab, you don't have to modify these settings for a basic task. However, you want to ensure the Power settings are configured as needed.

    Winows 11 Task Power Settings

  32. Click the OK button.
  33. Click the Settings app.
  34. (Optional) The "Settings" app includes additional options that will impact the task. Usually, it's a good idea to check the following options:

    • Run the task as soon as possible after a scheduled start is missed.
    • If the task fails, restart every: (Use this option with the default selections.)

    Windows 11 run task settings

  35. Click the OK button.

After you complete the steps, confirm the account credentials, and the task will run automatically on the specified event or schedule.

How to run and modify a task using Task Scheduler

To view, exit, or run a task on Windows 11, use these steps:

  1. Open Start.
  2. Search for Task Scheduler, click the top result to open the app.
  3. Expand the Task Scheduler Library branch.
  4. Select the folder that contains the task.
  5. To run a task on demand, right-click it and select the Run option.

    Windows 11 run and modify task

  6. To edit a task, right-click it and select the Properties options.
  7. To delete a task, right-click it and select the Delete option.

While the task is selected, you can also see the task information, including triggers, the last time the task was run, and when it'll run again.

Also, you can select the task, and use the right pane to perform different actions, such as run, end, disable, and edit the task.

More Windows resources

For more helpful articles, coverage, and answers to common questions about Windows 10 and Windows 11, visit the following resources:

Template: 
Rating: 
0.00

Viewing all articles
Browse latest Browse all 5861

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>