Would you like to learn how to create a scheduled task using the command line? In this tutorial, we are going to show you how to use the command line to create a scheduled task on a computer running Windows.

• Windows 2012 R2
• Windows 2016
• Windows 2019
• Windows 2022
• Windows 10
• Windows 11

Equipment list

Here you can find the list of equipment used to create this tutorial.

This link will also show the software list used to create this tutorial.

Windows Related Tutorial:

On this page, we offer quick access to a list of tutorials related to Windows.

Tutorial Windows - Create a scheduled task using the command-line

Start a command-line prompt.

Windows - Command-line prompt

Create an hourly scheduled task.

Copy to Clipboard

Create a daily scheduled task.

Copy to Clipboard

Create a weekly scheduled task.

Copy to Clipboard

Create a monthly scheduled task.

Copy to Clipboard

Create a task to run only once.

Copy to Clipboard

Modify a scheduled task.

Copy to Clipboard

Delete a scheduled task.

Copy to Clipboard

List all scheduled tasks.

Copy to Clipboard

List a specific scheduled task.

Copy to Clipboard

Congratulations! You learned how to create a scheduled task using the command line.

Tutorial Windows - Configure a scheduled task using the command-line

As an Administrator, start an elevated command line.

Windows - Elevated command prompt

Run a scheduled task every time the system starts.

Copy to Clipboard

Run a scheduled task every time a user logs on.

Copy to Clipboard

Create a scheduled task as another user.

Copy to Clipboard

Create a scheduled task as the system user.

Copy to Clipboard

Create a scheduled task with highest privileges.

Copy to Clipboard

Congratulations! You learned how to configure a scheduled task using the command line.