How to create, modify, and delete scheduled tasks from the command line Windows XP / Server 2003 introduced us to the SchTasks command-line tool, which usurped the At tool offered in Windows 2000. This tool offers the ability to control every aspect of your scheduled tasks by invoking this command.
While the Windows wizard uses to help you graphically create scheduled tasks, very well, a command-line tool is ideal for situations such as:
Manipulating tasks in batch scripts. Monitor and create tasks on networked computers without having to log in. Mass creation / synchronization of tasks on multiple machines. Use in custom applications to communicate with Task Scheduler instead of having to make API calls.
For example: Create "My task" to run C: RunMe.bat at 9 o'clock every day: SchTasks / Create / SC DAILY / TN "My task" / TR "C: RunMe.bat" / ST 09:00
Change “My task” at 2 pm: SchTasks / Change / TN “My task” / ST 14:00
Create "My task" to run C: RunMe.bat for the first time a month: SchTasks / Create / SC MONTHLY / D 1 / TN "My task" / TR "C: RunMe.bat" / ST 14:00
Create "My Task" to run C: RunMe.bat every weekday at 2 p.m .: SchTasks / Create / SC WEEKLY / D MON, TUE, WED, THU, FRI / TN "My Task" / TR "C: RunMe .bat "/ ST 14:00
Delete the task named "My task: SchTasks / Delete / TN" My task "
source share