SCHTASKS

SCHTASKS

Schedules commands and programs to run periodically or at a specific time, adds and removes tasks from the schedule, starts and stops tasks on demand, and displays and changes scheduled tasks.

Category
System
License
Windows
Platforms
Windows
Released
2000
Path
c:\schtasks\schtasks.exe
Version
Latest known: 10.0.26100.4343 (2025-06-10)

Examples

1. Create a daily task to run a script at 5 pm

SCHTASKS /create /tn "My Script" /tr "\"c:\my folder\script.cmd\" arguments" /sc daily /sd 12/29/2014 /st 17:00

2. Create a task ready to run on demand - this is done by creating a task scheduled far in the past

SCHTASKS /create /tn "On demand demo" /tr "c:\Windows\notepad.exe" /sc ONCE /sd 01/01/1910 /st 00:00

3. Create a task to run at 11 pm every weekday

SCHTASKS /Create /SC weekly /D MON,TUE,WED,THU,FRI /TN MyDailyBackup /ST 23:00 /TR d:\backup.cmd /RU MyDomain\MyLogin /RP MyPassword