Windows 10 ships with Task Scheduler, which is an advanced tool that allows you to create and run routines automatically. Using this tool, you can automate tasks to perform all sorts of things, including launching an app, running a specific command, or executing a script at a specified day and time, or when a particular condition is met using triggers.
Although there's a graphical experience to use Task Scheduler, you can also use Command Prompt to create, edit, and delete tasks, which can come in handy in many situations. For instance, when you need to speed up the process to create the same task on multiple computers, and when building an application or script that needs to connect with the tool — just to name a few.
In this Windows 10 guide, we'll walk you through the steps to get started managing scheduled tasks using the schtasks.exe tool on Command Prompt.
May 25, 2015 In Command Prompt, it’s a little more tricky to copy the result so, to do that, follow these instructions: 1) Right-click on the Command Prompt. 2) Select Mark. 3) Highlight the SHA1 key.
To create a scheduled task with Command Prompt on Windows 10, use these steps:
Type the following command to create a daily task to run an app at 11:00am and press Enter:
Syntax
SCHTASKS /CREATE /SC DAILY /TN 'FOLDERPATHTASKNAME' /TR 'C:SOURCEFOLDERAPP-OR-SCRIPT' /ST HH:MM
Example
SCHTASKS /CREATE /SC DAILY /TN 'MyTasksNotepad task' /TR 'C:WindowsSystem32notepad.exe' /ST 11:00
Quick tip: The folder path before the task name, under the /TN option, is not a requirement, but it'll help you to keep your tasks separate. If you don't specify a path, the task will be created inside the Task Scheduler Library folder.
Type the following command to create a weekly task to run an app at 11:00am and press Enter:
Syntax
SCHTASKS /CREATE /SC WEEKLY /D SUN /TN 'FOLDERPATHTASKNAME' /TR 'C:SOURCEFOLDERAPP-OR-SCRIPT' /ST HH:MM
Example
SCHTASKS /CREATE /SC WEEKLY /D SUN /TN 'MyTasksNotepad task' /TR 'C:WindowsSystem32notepad.exe' /ST 11:00
Currently the stable version is GPG 2.0. Rsa key generation command in linux. This software is pre-installed on most Linux distributions. This certificate is used to revoke your public/private keypair when your private key is compromised or you forget the passphrase for your private key.GPG can be used for encryption and for signing.
Type the following command to create a monthly task to run an app at 11:00am and press Enter:
Syntax
SCHTASKS /CREATE /SC MONTHLY /D 15 /TN 'FOLDERPATHTASKNAME' /TR 'C:SOURCEFOLDERAPP-OR-SCRIPT' /ST HH:MM
Example
SCHTASKS /CREATE /SC MONTHLY /D 15 /TN 'MyTasksNotepad task' /TR 'C:WindowsSystem32notepad.exe' /ST 11:00
Type the following command to create a scheduled task that runs daily as a specific user and press Enter:
Syntax
SCHTASKS /CREATE /SC DAILY /TN 'FOLDERPATHTASKNAME' /TR 'C:SOURCEFOLDERAPP-OR-SCRIPT' /ST HH:MM /RU USER-ACCOUNT
Example
SCHTASKS /CREATE /SC DAILY /TN 'MyTasksNotepad task' /TR 'C:WindowsSystem32notepad.exe' /ST 11:00 /RU admin
Once you complete the steps, the task will run during the intervals you specified.
The command line version of Task Scheduler ships with many options allowing to customize many aspects of a task, and in this guide, we are using the following options to change a scheduled task:
These are just some of the available options. You can learn more about the options to create a scheduled task running the SCHTASKS /CREATE /?
command.
To modify a scheduled task on Windows 10 with Command Prompt, use these steps:
Type the following command to change the time to run the task 9:00am and press Enter:
Syntax
SCHTASKS /CHANGE /TN 'FOLDERPATHTASKNAME' /ST HH:MM
Example
SCHTASKS /CHANGE /TN 'MyTasksNotepad task' /ST 09:00
Type the following command to change the task user information and press Enter:
Syntax
SCHTASKS /CHANGE /TN 'FOLDERPATHTASKNAME' /RU NEW-USERNAME
Example
SCHTASKS /CHANGE /TN 'MyTasksNotepad task' /RU admin2
Type the following command to disable a scheduled task and press Enter:
Syntax
SCHTASKS /CHANGE /TN 'FOLDERPATHTASKNAME' /DISABLE
Example
SCHTASKS /CHANGE /TN 'MyTasksNotepad task' /DISABLE
Quick tip: If you want to re-enable the task, you can use the same command, but make sure to use the /ENABLE
option instead.
After completing the steps, the task will be modified with the information that you've specified.
In this guide, we are using the following options to create a scheduled task:
These are just some of the available options. You can learn more about the options to change a scheduled task running the SCHTASKS /CHANGE /?
command.
If you no longer need a particular task, you can delete it using these steps:
Type the following command to delete a scheduled task and press Enter:
Syntax
SchTask /DELETE /TX 'FOLDERPATHTASKNAME'
Example
SCHTASKS /DELETE /TN 'MyTasksNotepad task'
Press the Y key to confirm.
Once you complete the steps, the task will be removed, and it'll no longer be available on your device.
In this guide, we are using the following options to delete a scheduled task:
We're focusing this guide on Windows 10, but the ability to use Task Scheduler with Command Prompt has been around for a long time, which means that you can also use these steps on Windows 8.1 and Windows 7.
For more helpful articles, coverage, and answers to common questions about Windows 10, visit the following resources:
Hi, I'm Mauro Huculak, Windows Central's help and how-to guru. I wrote the post you're reading now, and I know the Windows OS inside and out. But I'm also a bit of a hardware geek. These are some of the affordable gadgets on my desk today.
I know mice, and this is the one I use every day. The MX Master is a wireless high-precision mouse that's very comfortable to use and has many great features, including the ability to connect with multiple devices, an infinite scroll wheel, back and forward buttons, all of which you can customize.
If you spend a lot of time typing, your palms and mouse will leave tracks on your desk. My solution was to start using gaming mouse pads, which are big enough for you to use the keyboard and the mouse comfortably. This is the one I use and recommend.
You could just use a regular light bulb in your office, but if you want to add some ambient lighting with different colors, an RGB LED strip is the way to go. This one is Mauro-approved.
We may earn a commission for purchases using our links. Learn more.
Bells and WhistlesLenovo unveiled a fresh lineup of gaming PCs today, all of which take advantage of the latest tech from Intel and NVIDIA. At the top of the pack is the new Legion 7 laptop, featuring plenty of power, boosted thermals, and a sleek design.